MsmqMessage<T>.TimeToReachQueue 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 or sets a TimeSpan that indicates the maximum amount of time allowed for the message to reach the destination queue.
public:
property Nullable<TimeSpan> TimeToReachQueue { Nullable<TimeSpan> get(); void set(Nullable<TimeSpan> value); };
public TimeSpan? TimeToReachQueue { get; set; }
member this.TimeToReachQueue : Nullable<TimeSpan> with get, set
Public Property TimeToReachQueue As Nullable(Of TimeSpan)
Property Value
A TimeSpan that indicates the maximum amount of time allowed for the message to reach the destination queue. May be null
.
Examples
message.TimeToReachQueue = new TimeSpan(0,10,0);
message.TimeToReachQueue = New TimeSpan(0, 10, 0)
Remarks
If the interval specified by this property expires before the message reaches its destination queue, Message Queuing (MSMQ) discards the message in one of two ways. If the message's UseDeadLetterQueue property is true
, the message is sent to the dead-letter queue. Otherwise, the message is dropped.
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