SessionStateSection.SqlConnectionRetryInterval 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 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 段指定在連線錯誤發生前,重新連接資料庫的時間間隔(秒數)。