SqlConnectionStringBuilder.ConnectRetryInterval 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在識別發生閑置連線失敗之後,每個重新連線嘗試之間的時間量(以秒為單位)。 這必須是介於 1 到 60 之間的整數。 預設值是 [10 秒]。 如果設定為允許範圍以外的值,則會擲回 ArgumentException。
public:
property int ConnectRetryInterval { int get(); void set(int value); };
public int ConnectRetryInterval { get; set; }
member this.ConnectRetryInterval : int with get, set
Public Property ConnectRetryInterval As Integer
屬性值
在識別發生閑置連線失敗之後,每個重新連線嘗試之間的時間量(以秒為單位)。