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 <MessagingDescriptionAttribute("This event occurs when a message is read without being removed from the queue using the BeginPeek method.")> Public Event PeekCompleted As PeekCompletedEventHandler
'Usage Dim instance As MessageQueue Dim handler As PeekCompletedEventHandler AddHandler instance.PeekCompleted, handler
[MessagingDescription("This event occurs when a message is read without being removed from the queue using the BeginPeek method.")] public event PeekCompletedEventHandler PeekCompleted
[MessagingDescription("This event occurs when a message is read without being removed from the queue using the BeginPeek method.")] 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.
Property | Description |
---|---|
AsyncResult | Gets or sets the result of the asynchronous operation requested. |
Message | 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