Compartilhar via


ExceptionHandlingScope.StartCatch Method

Initiates the start of a custom code block that is to be executed on the client when the server throws an exception.

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 StartCatch As IDisposable
'Usage
Dim instance As ExceptionHandlingScope
Dim returnValue As IDisposable

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

Return Value

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

Remarks

This method must be called after the StartTry() method is called.

See Also

Reference

ExceptionHandlingScope Class

ExceptionHandlingScope Members

Microsoft.SharePoint.Client Namespace