PeekCompletedEventArgs.Message 屬性

定義

取得與非同步窺視作業關聯的訊息。Gets the message associated with the asynchronous peek operation.

public:
 property System::Messaging::Message ^ Message { System::Messaging::Message ^ get(); };
public System.Messaging.Message Message { get; }
member this.Message : System.Messaging.Message
Public ReadOnly Property Message As Message

屬性值

Message,表示非同步窺視作業的結果。A Message that represents the end result of the asynchronous peek operation.

例外狀況

無法擷取 MessageThe Message could not be retrieved. 非同步作業可能已經逾時。The time-out on the asynchronous operation might have expired.

備註

Message屬性提供一種方法來抓取起始非同步查看作業結束的訊息。The Message property provides a means for retrieving the message that initiated the end of the asynchronous peek operation.

MessageQueue.EndPeek第一次Message讀取屬性時會呼叫, 因此在取得此屬性的值之前, EndPeek不需要呼叫。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.

適用於

另請參閱