尝试这么做会产生例外状况。
这个属性提供例外状况起因的详细资讯。
This property provides details about the cause of an exception.
否则会掷回例外状况,也不会传回结果。
Otherwise an exception will be thrown and no results will be returned.
支援结构化例外状况处理。
您可以建立并掷回较特定的新例外状况。
与例外状况关联的讯息。
如果输入名称不存在,则会掷回例外状况。
如果该文件不被保护,就会掷回例外状况。
否则便会掷回例外状况。
如果没有任何视窗开启,就会掷回例外状况。
如果文件不是预览列印模式,会掷回例外状况。
If the document is not in print preview, an exception is thrown.
如果该主索引键已存在,就会掷回这个例外状况。
如果计数器不存在,设定这个属性会掷回例外状况。
If the counter does not exist, setting this property throws an exception.
使用描述例外状况的讯息,初始化此类别的新执行个体。
Initializes a new instance of the class with a message that describes the exception.
在讯息方块显示指定的例外状况和例外状况的相关资讯。
Displays the specified exception and information about the exception in a message box.
描述提供应用程序掷回的例外状况之相关资讯的效能计数器。
Describes the performance counters that provide information about the exceptions thrown by an application.
例如,XAML档案可能包括内含例外状况的自订控制项。
For example, a XAML file might contain a custom control that contains an exception.
这个属性可以用来在例外处理期间建立和保留例外状况的系列。
This property can be used to create and preserve a series of exceptions during exception handling.
如果您使用此方法时,文件已经受到保护,就会掷回例外状况。
If the document is already protected when you use this method, an exception is thrown.
错误讯息一般包含引发的例外状况类别和造成例外状况的方法。
An error message typically contains the type of exception raised and the method that caused the exception.
依使用权限不同,应用程序可以正常执行或产生安全性例外状况。
Depending on these permissions, the application either runs properly or generates a security exception.
如果是例外状况,则会撷取该例外状况的讯息,并向使用者报告。
If it is an exception, the message of the exception is extracted and reported to the user.
在设计良好的应用程序中,资源的使用应该从来不会掷回例外状况。
In a well-designed application, using resources should never throw an exception.
如果载入资料集之前,资料集中已有资料,可能会掷回这个例外状况。
If there is data in the dataset when you load it, this exception may be thrown.
方块会包含例外状况类型,以及其发生在程序码中之位置的详细资讯。
The Details box contains information about the type of exception and where in the code it occurred.
如果您在部署更新至资料库时,必须手动移动资料,可能是例外状况。
An exception might be if you must move data manually after you deploy updates to the database.
如此一来,即使您无法预知问题,至少使用者将看不到例外状况网页。
That way, even if you did not anticipate a problem, at least users will not see an exception page.
如果您不知道如何处理例外状况,请勿加以拦截,以免破坏程序的状态。
Do not catch an exception unless you know how to handle it so that you do not corrupt the state of your program.
这个主题会列出最常见的例外状况,并提供如何处理每个例外状况的建议。
This topic lists the most common exceptions and provides Suggestions on how to address each of them.
最后的范例显示在必须于查询执行期间掷回例外状况时,如何处理这些情况。
The final example shows how to handle those cases when you must throw an exception during execution of a query.
应用推荐