DomainClient.CancelQuery 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 query 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 CancelQuery ( _
asyncResult As IAsyncResult _
)
'Usage
Dim instance As DomainClient
Dim asyncResult As IAsyncResult
instance.CancelQuery(asyncResult)
public void CancelQuery(
IAsyncResult asyncResult
)
public:
void CancelQuery(
IAsyncResult^ asyncResult
)
member CancelQuery :
asyncResult:IAsyncResult -> unit
public function CancelQuery(
asyncResult : IAsyncResult
)
Parameters
- asyncResult
Type: System.IAsyncResult
An IAsyncResult specifying what query 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. |