NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MessageQueue.EndReceive

Terminates a receive asynchronous operation identified by the specified interface.

[Visual Basic]
Public Function EndReceive( _
   ByVal asyncResult As IAsyncResult _
) As Message
[C#]
public Message EndReceive(
   IAsyncResult asyncResult
);
[C++]
public: Message* EndReceive(
   IAsyncResult* asyncResult
);
[JScript]
public function EndReceive(
   asyncResult : IAsyncResult
) : Message;

Parameters

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

Return Value

The Message that represents the result of the posted asynchronous operation.

Exceptions

Exception Type Condition
ArgumentNullException The asyncResult parameter is a null reference (in Visual Basic Nothing).
ArgumentException The asyncResult parameter has invalid syntax.

See Also

MessageQueue Class | MessageQueue Members | System.Messaging Namespace | BeginReceive