ConnectionTimeout property

Description

The number of seconds before a connection attempt times out with an error.

Syntax

int ConnectionTimeout

Access

Read-only

Default

15 seconds.

Implements

IDbConnection.ConnectionTimeout

Example

The following statement changes the ConnectionTimeout to 30 seconds.

conn.ConnectionTimeout = 30;