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.EndPeek

Terminates a peek asynchronous operation identified by the specified interface.

[Visual Basic]
Public Function EndPeek( _
   ByVal asyncResult As IAsyncResult _
) As Message
[C#]
public Message EndPeek(
   IAsyncResult asyncResult
);
[C++]
public: Message* EndPeek(
   IAsyncResult* asyncResult
);
[JScript]
public function EndPeek(
   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 | BeginPeek