Data.Win.ADODB.TADOConnection.ConnectionTimeout
[–] Properties | |
---|---|
Type: property | |
Visibility: published | |
Source: Data.Win.ADODB.pas Data.Win.ADODB.hpp
| |
Unit: Data.Win.ADODB | |
Parent: TADOConnection |
Delphi
property ConnectionTimeout: Integer read GetConnectionTimeout write SetConnectionTimeout default 15;
C++
__property int ConnectionTimeout = {read=GetConnectionTimeout, write=SetConnectionTimeout, default=15};
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.