MsmqMessage<T>.SentTime Property

Definition

Gets a DateTime that indicates when the message was sent by the queue manager of the sending application's computer.

public:
 property Nullable<DateTime> SentTime { Nullable<DateTime> get(); };
public DateTime? SentTime { get; }
member this.SentTime : Nullable<DateTime>
Public ReadOnly Property SentTime As Nullable(Of DateTime)

Property Value

A DateTime that indicates when the message was sent by the queue manager of the sending application's computer. May be null.

Examples

Console.WriteLine("Message was sent at {0}", message.SentTime);
Console.WriteLine("Message was sent at {0}", message.SentTime)

Remarks

The sent time is adjusted to the local time of the sending application's computer. The source and destination queues may be on computers with different time zones.

The default for this property is null.

Applies to