Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PeekCompletedEventArgs::Message Property

 

Gets the message associated with the asynchronous peek operation.

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public:
property Message^ Message {
	Message^ get();
}

Property Value

Type: System.Messaging::Message^

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

Exception Condition
MessageQueueException

The Message could not be retrieved. The time-out 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.

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft