Data.Win.ADODB.TConnectOption
Delphi
TConnectOption = (coConnectUnspecified, coAsyncConnect);
C++
enum DECLSPEC_DENUM TConnectOption : unsigned char { coConnectUnspecified, coAsyncConnect };
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
enum | public | Data.Win.ADODB.pas Data.Win.ADODB.hpp |
Data.Win.ADODB | Data.Win.ADODB |
Description
TConnectOption indicates whether the connection to the ADO data store is synchronous or asynchronous.
TConnectOption is the type of the TADOConnection object's ConnectOptions property. It specifies whether the connection established by the TADOConnection is synchronous or asynchronous. The following table lists the possible values:
Value | Meaning |
---|---|
coConnectUnspecified |
The connection is formed synchronously. |
coAsyncConnect |
The connection is formed asynchronously. This is useful if the server is very slow, but the application must be aware that not all data values are necessarily available when the connection is first established. |