DbConnection.ConnectionTimeout Property


Gets the time to wait (in seconds) while establishing a connection before terminating the attempt and generating an error.

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

Property Value

The time (in seconds) to wait for a connection to open. The default value is determined by the specific type of connection that you are using.


Applies to

See also