DomainClient.CancelSubmit 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 submit 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 CancelSubmit ( _
asyncResult As IAsyncResult _
)
'Usage
Dim instance As DomainClient
Dim asyncResult As IAsyncResult
instance.CancelSubmit(asyncResult)
public void CancelSubmit(
IAsyncResult asyncResult
)
public:
void CancelSubmit(
IAsyncResult^ asyncResult
)
member CancelSubmit :
asyncResult:IAsyncResult -> unit
public function CancelSubmit(
asyncResult : IAsyncResult
)
Parameters
- asyncResult
Type: System.IAsyncResult
An IAsyncResult specifying what submit 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 was not created by this DomainClient instance. |
[NotSupportedException] | Cancelation is not supported for the domain client implementation. |