語言

SessionStateSection.SqlConnectionRetryInterval 屬性

定義

取得或設定 ASP.NET 重新連接資料庫前應該過的時間間隔。

public:
 property TimeSpan SqlConnectionRetryInterval { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsOrInfiniteConverter))]
[System.Configuration.ConfigurationProperty("sqlConnectionRetryInterval", DefaultValue="00:00:00")]
public TimeSpan SqlConnectionRetryInterval { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.TimeSpanSecondsOrInfiniteConverter))>]
[<System.Configuration.ConfigurationProperty("sqlConnectionRetryInterval", DefaultValue="00:00:00")>]
member this.SqlConnectionRetryInterval : TimeSpan with get, set
Public Property SqlConnectionRetryInterval As TimeSpan

屬性值

應該過的時間間隔,ASP.NET 才會重新連接資料庫。

屬性

備註

該時間 SqlConnectionRetryInterval 段指定在連線錯誤發生前,重新連接資料庫的時間間隔(秒數)。

適用於