System.Messaging Reference (Document! X Sample)
EndPeek Method



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

Parameters

asyncResult
The System.IAsyncResult that identifies the asynchronous peek 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

Reference

MessageQueue Class
MessageQueue Members