System.Messaging Reference (Document! X Sample)



The System.IAsyncResult that identifies the asynchronous receive operation to finish and from which to retrieve an end result.
EndReceive Method
Completes the specified asynchronous receive operation.
Syntax
'Declaration
 
Public Function EndReceive( _
   ByVal asyncResult As IAsyncResult _
) As Message
'Usage
 
Dim instance As MessageQueue
Dim asyncResult As IAsyncResult
Dim value As Message
 
value = instance.EndReceive(asyncResult)
public Message EndReceive( 
   IAsyncResult asyncResult
)
public:
Message^ EndReceive( 
   IAsyncResult^ asyncResult
) 

Parameters

asyncResult
The System.IAsyncResult that identifies the asynchronous receive operation to finish and from which to retrieve an end result.

Return Value

The Message associated with the completed asynchronous operation.
Exceptions
ExceptionDescription
The asyncResult parameter is null.
The syntax of the asyncResult parameter is not valid.
An error occurred when accessing a Message Queuing method.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also