MsmqIntegrationMessageProperty.TimeToReachQueue 属性
定义
获取或设置消息到达队列所用的最长时间。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)
属性值
消息到达队列所用的最长时间。The maximum amount of time for the message to reach the queue.
例外
该值不可为 null,也不可小于零。The value is not null and is less than zero.
- 或 --or-
该值不可为无穷大,并且要大于 Int32.MaxValue 毫秒。The value is not infinite and is greater than Int32.MaxValue milliseconds.
注解
如果在消息到达其目标之前,TimeToReachQueue 属性所指定的时间间隔就到期了,则 MSMQ 会遵照绑定上的 DeadLetterQueue 属性所指示的行为,丢弃该消息。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.