This documentation is archived and is not being maintained.

ReceiveCompletedEventArgs.Message Property

Gets the message associated with the asynchronous receive 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 receive 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 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.


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

ReceiveCompletedEventArgs Class | ReceiveCompletedEventArgs Members | System.Messaging Namespace