Share via


DataServiceContext.CancelRequest(IAsyncResult) Method

Definition

Attempts to cancel the operation that is associated with the supplied IAsyncResult object.

public virtual void CancelRequest (IAsyncResult asyncResult);
abstract member CancelRequest : IAsyncResult -> unit
override this.CancelRequest : IAsyncResult -> unit
Public Overridable Sub CancelRequest (asyncResult As IAsyncResult)

Parameters

asyncResult
IAsyncResult

The IAsyncResult object from the operation being canceled.

Remarks

DataServiceContext is not safe to use until asyncResult.IsCompleted is true.

Applies to