IDbConnection.ConnectionTimeout プロパティ

定義

接続を確立しようと待ち時間を確保し、その後試みを終了してエラーを発生させます。

public:
 property int ConnectionTimeout { int get(); };
public int ConnectionTimeout { get; }
member this.ConnectionTimeout : int
Public ReadOnly Property ConnectionTimeout As Integer

プロパティ値

待つ時間だ。

注釈

0の値は、待機時間の制限なしを示すものであり、待機時間がないという意味ではなく、ConnectionStringでは接続が無限に待機しようとする原因となるため避けるべきです。

プロパティ値

接続が開くのを待機する時間 (秒単位)。 既定値は 15 秒です。

適用対象