Language

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 未満です。

適用対象