.NET Framework 4.6 and 4.5
Gets or sets the length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error.
member ConnectTimeout : int with get, set
System .Int32 The value of the property, or 15 seconds if no value has been supplied. ConnectTimeout
This property corresponds to the "Connect Timeout", "connection timeout", and "timeout" keys within the connection string.
When opening a connection to a Azure SQL Database, set the connection timeout to 30 seconds.
The following example first displays the contents of a connection string that does not specify the "Connect Timeout" value, sets the
property, and then displays the new connection string. ConnectTimeout
No code example is currently available or this language may not be supported.
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
.NET Framework Client Profile
Supported in: 4, 3.5 SP1