Export (0) Print
Expand All

PeekCompletedEventArgs.Message Property

Gets the message associated with the asynchronous peek operation.

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

Property Value

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

Exceptions

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

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft