Initiates a code block that might throw server exceptions.
命名空间: Microsoft.SharePoint.Client
程序集: Microsoft.SharePoint.Client.Silverlight.Runtime(位于 Microsoft.SharePoint.Client.Silverlight.Runtime.dll 中); Microsoft.SharePoint.Client.Runtime(位于 Microsoft.SharePoint.Client.Runtime.dll 中) Microsoft.SharePoint.Client.Phone.Runtime(位于 Microsoft.SharePoint.Client.Phone.Runtime.dll 中)
语法
声明
Public Function StartTry As IDisposable
用法
Dim instance As ExceptionHandlingScope
Dim returnValue As IDisposable
returnValue = instance.StartTry()
public IDisposable StartTry()
返回值
类型:System.IDisposable
The interface that is used to end the try scope.
备注
The try block must be the statement immediately after StartScope(), and it must have a corresponding StartCatch() block. Each exception-handling scope can have only one try block.