MsmqElementBase.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 過期,任何可用於處理訊息的交易都將中止,而且如果過期是在交易期間發生,工作流程執行個體也會一併中止。

適用於