EntityConnection.ConnectionTimeout プロパティ

定義

接続を確立する際、試行を終了してエラーを生成するまでに待機する秒数を取得します。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations")]
public override int ConnectionTimeout { get; }
member this.ConnectionTimeout : int
Public Overrides ReadOnly Property ConnectionTimeout As Integer

プロパティ値

接続が開くのを待機する時間 (秒単位) です。 既定値は、基になるデータ プロバイダーの既定のタイムアウト値です。

属性

例外

0 より小さい値が設定されました。

適用対象