Data.Win.ADODB.TConnectOption

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: enum
Visibility: public
Source:
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Unit: Data.Win.ADODB
Parent: Data.Win.ADODB

Delphi

TConnectOption = (coConnectUnspecified, coAsyncConnect);

C++

enum DECLSPEC_DENUM TConnectOption : unsigned char { coConnectUnspecified, coAsyncConnect };

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.



See Also