ReceiveCompletedEventArgs.Message Property
.NET Framework 1.1
Gets the message associated with the asynchronous receive 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 receive 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 receive operation.
Note MessageQueue.EndReceive is called the first time the Message property is read, so it is not necessary to call EndReceive 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:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
ReceiveCompletedEventArgs Class | ReceiveCompletedEventArgs Members | System.Messaging Namespace