共用方式為


ExceptionHandlingScope Members

Include Protected Members
Include Inherited Members

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

The ExceptionHandlingScope type exposes the following members.

Constructors

  Name Description
Public method ExceptionHandlingScope Initializes a new instance of the ExceptionHandlingScope class with the specified client runtime context.

Top

Properties

  Name Description
Public property ErrorMessage Gets the error message of the exception when the code is executed in the try scope.
Public property HasException Gets the flag that indicates whether an exception has occurred in the try scope.
Public property Processed Gets the flag that indicates whether the scope has been processed by the server.
Public property ServerErrorCode Gets the error code that corresponds to the exception that occurred in the try scope.
Public property ServerErrorValue Gets the error value that corresponds to the exception that occurs in the try scope.
Public property ServerStackTrace Gets the server call stack information of the exception in the try scope.

Top

Methods

  Name Description
Public method StartCatch Initiates the start of a custom code block that is to be executed on the client when the server throws an exception.
Public method 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.
Public method StartScope Initiates a code block that contains calls to the StartTry(), StartCatch() and StartFinally() methods.
Public method StartTry Initiates a code block that might throw server exceptions.
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IFromJson.CustomFromJson Indicates whether custom code is used to initialize the ExceptionHandlingScope class.
Explicit interface implemetationPrivate method IFromJson.FromJson Initializes the object with the response that comes from the server.

Top

See Also

Reference

ExceptionHandlingScope Class

Microsoft.SharePoint.Client Namespace