Data.Win.ADODB.TADOConnection.Cancel
Delphi
procedure Cancel;
C++
void __fastcall Cancel();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Data.Win.ADODB.pas Data.Win.ADODB.hpp |
Data.Win.ADODB | TADOConnection |
Description
Aborts an attempt to connect to a data store.
Call Cancel to abort an attempt to connect to an ADO data store. To use cancel, the connection attempted must be asynchronous (the ConnectOptions property must be set to coAsyncConnect).
Cancel must be used after an attempt to connect is initiated by calling the Open method (or setting Connected to true) and before the connection has been successfully made or has timed out.