SqlConnectionStringBuilder.ConnectRetryCount 屬性

定義

識別發生閑置連線失敗之後嘗試的重新連線次數。 這必須是介於 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

屬性值

識別發生閑置連線失敗之後嘗試的重新連線次數。

適用於