DataServiceContext.CancelRequest(IAsyncResult) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.