MsmqIntegrationMessageProperty.TimeToReachQueue Property

Definition

Gets or sets the maximum amount of time for the message to reach the 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

The maximum amount of time for the message to reach the queue.

Exceptions

The value is not null and is less than zero.

-or-

The value is not infinite and is greater than Int32.MaxValue milliseconds.

Remarks

If the interval specified by the TimeToReachQueue property expires before the message reaches its destination, MSMQ discards the message depending on the behavior indicated by the DeadLetterQueue property on the binding.

Applies to