Message::ArrivedTime Property
.NET Framework (current version)
Gets the time that the message arrived in the destination queue.
Assembly: System.Messaging (in System.Messaging.dll)
public: [MessagingDescriptionAttribute("MsgArrivedTime")] property DateTime ArrivedTime { DateTime get(); }
Property Value
Type: System::DateTimeA DateTime that represents the message's arrival time in the destination queue. The time is adjusted from GMT to the local time of the computer on which the destination queue resides.
| Exception | Condition |
|---|---|
| InvalidOperationException | The message has not been sent. This property can only be read on messages retrieved from a queue. -or- The message queue is filtered to ignore the ArrivedTime property. |
The message's TimeToBeReceived property indicates how quickly the message must be received from the destination queue. The TimeToBeReceived property timer starts when the message is sent, not when the message arrives in the queue.
The following code example displays the value of a message's ArrivedTime property.
.NET Framework
Available since 1.1
Available since 1.1
Show: