System.Messaging Reference (Document! X Sample)
PeekCompleted Event



System.Messaging Namespace > MessageQueue Class : PeekCompleted Event
Occurs when a message is read without being removed from the queue. This is a result of the asynchronous operation, BeginPeek.
Syntax
'Declaration
 
Public Event PeekCompleted As PeekCompletedEventHandler
'Usage
 
Dim instance As MessageQueue
Dim handler As PeekCompletedEventHandler
 
AddHandler instance.PeekCompleted, handler
public event PeekCompletedEventHandler PeekCompleted
public:
event PeekCompletedEventHandler^ PeekCompleted
Event Data

The event handler receives an argument of type PeekCompletedEventArgs containing data related to this event. The following PeekCompletedEventArgs properties provide information specific to this event.

PropertyDescription
Gets or sets the result of the asynchronous operation requested.  
Gets the message associated with the asynchronous peek operation.  
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