Data.Win.ADODB.TADOConnection.ConnectionTimeout
Delphi
property ConnectionTimeout: Integer read GetConnectionTimeout write SetConnectionTimeout default 15;
C++
__property int ConnectionTimeout = {read=GetConnectionTimeout, write=SetConnectionTimeout, default=15};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Data.Win.ADODB.pas Data.Win.ADODB.hpp |
Data.Win.ADODB | TADOConnection |
Description
Specifies amount of time to attempt a connection.
Use ConnectionTimeout to specify the amount of time, in seconds, that can expire before an attempt to make a connection is considered unsuccessful. The default value is 15 seconds.
If a connection is successfully made prior to the expiration of the seconds specified or the Cancel method is called, ConnectionTimeout has no effect. If the specified time expires and a connection has not been successfully made, the attempt is terminated and an exception is raised.