Share via


ExceptionHandlingScope.StartScope method

Initiates a code block that contains calls to the StartTry(), StartCatch(), and StartFinally() methods.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client.Runtime (in Microsoft.SharePoint.Client.Runtime.dll)

Syntax

'Declaration
Public Function StartScope As IDisposable
'Usage
Dim instance As ExceptionHandlingScope
Dim returnValue As IDisposable

returnValue = instance.StartScope()
public IDisposable StartScope()

Return value

Type: System.IDisposable
The interface that is used to end the scope.

Remarks

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

See also

Reference

ExceptionHandlingScope class

ExceptionHandlingScope members

Microsoft.SharePoint.Client namespace