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:
void CancelRequest(IAsyncResult ^ asyncResult);
public void CancelRequest (IAsyncResult asyncResult);
member this.CancelRequest : IAsyncResult -> unit
Public Sub CancelRequest (asyncResult As IAsyncResult)
Parameters
- asyncResult
- IAsyncResult
The IAsyncResult object from the operation being canceled.
Remarks
The IAsyncResult object passed to the asyncResult
parameter is the object returned when an operation is executed asynchronously. For more information, see Asynchronous Operations.Until this request is processed, the DataServiceContext instance is not in a predictable state. The DataServiceContext can be safely used when the IsCompleted property of the asyncResult
returns a value of true
.