| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As ITransportChannel Dim request As IServiceRequest Dim callback As AsyncCallback Dim callbackData As Object Dim value As IAsyncResult value = instance.BeginSendRequest(request, callback, callbackData) | |
| C# | |
|---|---|
IAsyncResult BeginSendRequest( IServiceRequest request, AsyncCallback callback, object callbackData ) | |
Parameters
- request
- The request to send.
- callback
- The callback to call when the operation completes.
- callbackData
- The callback data to return with the callback.
Return Value
The result which must be passed to the EndSendRequest method.| Exception | Description |
|---|---|
| ServiceResultException | Thrown if any communication error occurs. |
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x