Поделиться через


DataServiceContext.CancelRequest Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Cancels a request to the DataServiceContext.

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

Syntax

'Declaration
Public Sub CancelRequest ( _
    asyncResult As IAsyncResult _
)
public void CancelRequest(
    IAsyncResult asyncResult
)

Parameters

  • asyncResult
    Type: System.IAsyncResult
    The status of the asynchronous operation to be cancelled.

Remarks

The DataServiceContext is not in a predictable state until after the IsCompleted property of the returned asyncResult is true.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.