DataServiceContext.CancelRequest Method (IAsyncResult)


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

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

public void CancelRequest(
	IAsyncResult asyncResult


Type: System.IAsyncResult

The IAsyncResult object from the operation being canceled.

The IAsyncResult object passed to the asyncResult parameter is the object returned when an operation is executed asynchronously. For more information, see Asynchronous Operations (WCF Data Services).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.

.NET Framework
Available since 3.5
Available since 2.0
Return to top