Compartilhar via


ExceptionHandlingScope.StartScope Method

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

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight.Runtime (in Microsoft.SharePoint.Client.Silverlight.Runtime.dll);  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