System.Data.IDbConnection.ConnectionTimeout Property

Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error.

Syntax

public int ConnectionTimeout { get; }

Value

Documentation for this section has not yet been entered.

Remarks

A value of 0 indicates no limit to the wait time, rather than no wait time, and should be avoided in a IDbConnection.ConnectionString because it would cause the connection attempt to wait indefinitely.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0