共用方式為


SP.ExceptionHandlingScope.startScope() Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Applies To
Remarks

Initiates a code block that contains calls to the SP.ExceptionHandlingScope.startTry() Method, SP.ExceptionHandlingScope.startCatch() Method and SP.ExceptionHandlingScope.startFinally() Method methods.

var value = SP.ExceptionHandlingScope.startScope();

Return Value

Type: IDisposable

Applies To

SP.ExceptionHandlingScope Class

Remarks

This method associates the exception-handling scope with the request so that the scope can receive data back from server.

See Also

Reference

SP.ExceptionHandlingScope Methods

SP.ExceptionHandlingScope Properties

SP Namespace