Share via


DomainClient.CancelInvoke Method

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Attempts to cancel the invocation request specified by the asyncResult.

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

Syntax

'Declaration
Public Sub CancelInvoke ( _
    asyncResult As IAsyncResult _
)
'Usage
Dim instance As DomainClient
Dim asyncResult As IAsyncResult

instance.CancelInvoke(asyncResult)
public void CancelInvoke(
    IAsyncResult asyncResult
)
public:
void CancelInvoke(
    IAsyncResult^ asyncResult
)
member CancelInvoke : 
        asyncResult:IAsyncResult -> unit 
public function CancelInvoke(
    asyncResult : IAsyncResult
)

Parameters

  • asyncResult
    Type: System.IAsyncResult
    An IAsyncResult specifying what invocation operation to cancel.

Exceptions

Exception Condition
[ArgumentNullException]

asyncResult is null.

[InvalidOperationException]

The operation associated with asyncResult has been canceled.

-or-

The operation associated with asyncResult has completed.

[ArgumentException]

asyncResult is for another operation

-or-

asyncResult was not created by this DomainClient instance.

[NotSupportedException]

Cancelation is not supported for the domain client implementation.

See Also

Reference

DomainClient Class

System.ServiceModel.DomainServices.Client Namespace