MsmqMessage<T>.SentTime Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om