MsmqBindingBase.ValidityDuration 属性
定义
获取或设置一个值,该值指定由接收上下文功能锁定消息的持续时间。Gets or sets a value that specifies the duration a message will be locked by the receive context feature.
public:
property TimeSpan ValidityDuration { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan ValidityDuration { get; set; }
member this.ValidityDuration : TimeSpan with get, set
Public Property ValidityDuration As TimeSpan
属性值
一个 timespan 对象。A timespan object.
注解
重要
当 ValidityDuration 对某一消息过期时,如果过期是在事务处理期间发生的,则会随工作流实例一起中止用于其处理的任何事务。If ValidityDuration expires for a message, any transaction that may be used for its processing will be aborted along with the workflow instance if the expiration occurs during the transaction.