MsmqBindingElementBase.ValidityDuration 属性

定义

获取或设置一个值,该值指示在使用排队通道时的连接超时。

public:
 property TimeSpan ValidityDuration { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Runtime.TimeSpanOrInfiniteConverter))]
[System.Configuration.ConfigurationProperty("validityDuration", DefaultValue="00:05:00")]
public TimeSpan ValidityDuration { get; set; }
[System.Configuration.ConfigurationProperty("validityDuration", DefaultValue="00:05:00")]
[System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter))]
public TimeSpan ValidityDuration { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Runtime.TimeSpanOrInfiniteConverter))>]
[<System.Configuration.ConfigurationProperty("validityDuration", DefaultValue="00:05:00")>]
member this.ValidityDuration : TimeSpan with get, set
[<System.Configuration.ConfigurationProperty("validityDuration", DefaultValue="00:05:00")>]
[<System.ComponentModel.TypeConverter(typeof(System.ServiceModel.Configuration.TimeSpanOrInfiniteConverter))>]
member this.ValidityDuration : TimeSpan with get, set
Public Property ValidityDuration As TimeSpan

属性值

与排队通道一起使用时,连接超时。

属性

注解

重要

ValidityDuration 对某一消息过期时,如果过期是在事务处理期间发生的,则会随工作流实例一起中止用于其处理的任何事务。

适用于