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