Timeout connecting to the server (in seconds) before an exception.
Default value: zero - used the server configuration.
Namespace: Nemiro.Data.SqlAssembly: Nemiro.Data (in Nemiro.Data.dll) Version: 2.11.4.126 (2.11.4.126)
public int ConnectionTimeout { get; set; }
public int ConnectionTimeout { get; set; }
Public Property ConnectionTimeout As Integer
Get
Set
Public Property ConnectionTimeout As Integer
Get
Set
Property Value
Type:
Int32using (SqlClient client = new SqlClient())
{
client.ConnectionTimeout = int.MaxValue;
}
using (SqlClient client = new SqlClient())
{
client.ConnectionTimeout = int.MaxValue;
// ...
}
Using client As New SqlClient())
client.ConnectionTimeout = Integer.MaxValue
End Using
Using client As New SqlClient())
client.ConnectionTimeout = Integer.MaxValue
' ...
End Using