ExceptionHandlingScope 成员

Ignores an exception that is raised by the server, or executes code in response to an exception that is thrown by the server.

ExceptionHandlingScope 类型公开以下成员。

构造函数

  名称 说明
公共方法 ExceptionHandlingScope Initializes a new instance of the ExceptionHandlingScope class with the specified client runtime context.

页首

属性

  名称 说明
公共属性 ErrorMessage Gets the error message of the exception when the code is executed in the try scope.
公共属性 HasException Gets the flag that indicates whether an exception has occurred in the try scope.
公共属性 Processed Gets the flag that indicates whether the scope has been processed by the server.
公共属性 ServerErrorCode Gets the error code that corresponds to the exception that occurred in the try scope.
公共属性 ServerErrorDetails Gets the details of the exception.
公共属性 ServerErrorTypeName Gets the type name, such as System.ArgumentException, of the exception.
公共属性 ServerErrorValue Gets the error value that corresponds to the exception that occurs in the try scope.
公共属性 ServerStackTrace Gets the server call stack information of the exception in the try scope.

页首

方法

  名称 说明
公共方法 StartCatch Initiates the start of a custom code block that is to be executed on the client when the server throws an exception.
公共方法 StartFinally Initiates the start of a custom code block that is to be executed on the client after all StartCatch() code blocks have been executed.
公共方法 StartScope Initiates a code block that contains calls to the StartTry(), StartCatch(), and StartFinally() methods.
公共方法 StartTry Initiates a code block that might throw server exceptions.
公共方法 ToString (从 Object 继承。)

页首

显式 接口 实现

  名称 说明
显式接口实现私有方法 IFromJson.CustomFromJson Indicates whether custom code is used to initialize the ExceptionHandlingScope class.
显式接口实现私有方法 IFromJson.FromJson Initializes the object with the response that comes from the server.

页首

另请参阅

引用

ExceptionHandlingScope 类

Microsoft.SharePoint.Client 命名空间