Message Property
Collapse the table of content
Expand the table of content

PeekCompletedEventArgs.Message Property

Gets the message associated with the asynchronous peek operation.

[Visual Basic]
Public ReadOnly Property Message As Message
public Message Message {get;}
public: __property Message* get_Message();
public function get Message() : Message;

Property Value

A Message that represents the end result of the asynchronous peek operation.


Exception Type Condition
MessageQueueException The Message could not be retrieved. The timeout on the asynchronous operation might have expired.


The Message property provides a means for retrieving the message that initiated the end of the asynchronous peek operation.

Note    MessageQueue.EndPeek is called the first time the Message property is read, so it is not necessary to call EndPeek prior to getting the value of this property.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

PeekCompletedEventArgs Class | PeekCompletedEventArgs Members | System.Messaging Namespace | PeekCompletedEventHandler | BeginPeek | EndPeek | Message

© 2016 Microsoft