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



System.Messaging Namespace > MessageQueue Class > BeginPeek Method : BeginPeek() Method
Initiates an asynchronous peek operation that has no time-out. The operation is not complete until a message becomes available in the queue.
Syntax
'Declaration
 
Public Overloads Function BeginPeek() As IAsyncResult
'Usage
 
Dim instance As MessageQueue
Dim value As IAsyncResult
 
value = instance.BeginPeek()
public IAsyncResult BeginPeek()
public:
IAsyncResult^ BeginPeek(); 

Return Value

The System.IAsyncResult that identifies the posted asynchronous request.
Exceptions
ExceptionDescription
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
Overload List