RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TADOConnection.ConnectionTimeout Property

Specifies amount of time to attempt a connection.

Pascal
property ConnectionTimeout: Integer;
C++
__property int ConnectionTimeout;

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!