DomainClient.BeginInvoke 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.]
Invokes an operation asynchronously.
Namespace: System.ServiceModel.DomainServices.Client
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
Syntax
'Declaration
Public Function BeginInvoke ( _
invokeArgs As InvokeArgs, _
callback As AsyncCallback, _
userState As Object _
) As IAsyncResult
'Usage
Dim instance As DomainClient
Dim invokeArgs As InvokeArgs
Dim callback As AsyncCallback
Dim userState As Object
Dim returnValue As IAsyncResult
returnValue = instance.BeginInvoke(invokeArgs, _
callback, userState)
public IAsyncResult BeginInvoke(
InvokeArgs invokeArgs,
AsyncCallback callback,
Object userState
)
public:
IAsyncResult^ BeginInvoke(
InvokeArgs^ invokeArgs,
AsyncCallback^ callback,
Object^ userState
)
member BeginInvoke :
invokeArgs:InvokeArgs *
callback:AsyncCallback *
userState:Object -> IAsyncResult
public function BeginInvoke(
invokeArgs : InvokeArgs,
callback : AsyncCallback,
userState : Object
) : IAsyncResult
Parameters
- invokeArgs
Type: System.ServiceModel.DomainServices.Client.InvokeArgs
The arguments to the Invoke operation.
- callback
Type: System.AsyncCallback
The callback to invoke when the invocation has been completed.
- userState
Type: System.Object
Optional user state associated with this operation.
Return Value
Type: System.IAsyncResult
An asynchronous result that identifies this invocation.
Exceptions
Exception | Condition |
---|---|
[ArgumentNullException] | invokeArgs or callback is nulla null reference (Nothing in Visual Basic). |