SentTime Property (Message)
Gets the date and time on the sending computer that the message was sent by the source queue manager.
Syntax
'Declaration <MessagingDescriptionAttribute("Indicates the date and time that the message was sent by the source Queue Manager.")> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <ReadOnlyAttribute(True)> Public ReadOnly Property SentTime As Date
[MessagingDescription("Indicates the date and time that the message was sent by the source Queue Manager.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [ReadOnly(true)] public DateTime SentTime {get;}
[MessagingDescription("Indicates the date and time that the message was sent by the source Queue Manager.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [ReadOnly(true)] public: property DateTime SentTime { DateTime get(); }
Property Value
A System.DateTime that represents the time the message was sent.Exceptions
Exception | Description |
---|---|
System.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 SentTime property. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also