Data.Win.ADODB.TADOConnection详解
2021-08-13
新闻来源:网淘巴
围观:1871
''
![]()
Delphi
TADOConnection = class(TCustomConnection, IUnknown, ConnectionEventsVT)
C++
class PASCALIMPLEMENTATION TADOConnection : public Data::Db::TCustomConnection
Contents
[hide]
属性
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| class | public | Data.Win.ADODB.pasData.Win.ADODB.hpp | Data.Win.ADODB | Data.Win.ADODB |
描述
TADOConnection 连接到 ADO 数据存储。 TADOConnection 封装了 ADO 连接对象。 使用 TADOConnection 连接到 ADO 数据存储。 单个 TADOConnection 组件提供的连接可以由多个 ADO command和dataset 组件通过它们的 Connection 属性共享。 TADOConnection 允许您控制与数据存储的连接的属性和条件。 使用 TADOConnection 的属性来控制诸如记录锁定方案(乐观与悲观)、游标类型、游标位置、隔离级别和连接超时等属性。 还提供了用于实现事务和检索有关此组件连接到的数据库的元数据的方法。
属性
| Attributes | published | |
| CommandCount | public | |
| Commands | public | |
| CommandTimeout | published | 翻译结果指定尝试执行命令的时间量。 |
| ComObject | public | Specifies the interface reference implemented by the component. |
| ComponentCount | public | Indicates the number of components owned by the component. |
| ComponentIndex | public | Indicates the position of the component in its owner's Components property array. |
| Components | public | Lists all components owned by the component. |
| ComponentState | public | Describes the current state of the component, indicating when a component needs to avoid certain actions. |
| ComponentStyle | public | Governs the behavior of the component. |
| Connected | published | |
| ConnectionObject | public | Provides direct access to the ADO connection object. |
| ConnectionString | published | Specifies the connection information for the data store. |
| ConnectionTimeout | published | Specifies amount of time to attempt a connection. |
| ConnectOptions | published | Specifies whether a connection is synchronous or asynchronous. |
| CursorLocation | published | Specifies whether cursors for the connection is client-side or server-side. |
| DataSetCount | public | Indicates the number of datasets associated with the connection component. |
| DataSets | public | Provides an indexed array of all active datasets for a connection component. |
| DefaultDatabase | published | Indicates the database the ADO connection uses by default. |
| DesignInfo | public | Contains information used by the Form designer. |
| Errors | public | Errors is the implementation of the Errors Collection. |
| InTransaction | public | Indicates whether a transaction is in progress. |
| IsolationLevel | published | Specifies the transaction isolation level for transactions. |
| KeepConnection | published | Specifies whether an application remains connected to a database even if no datasets are open. |
| LoginPrompt | published | |
| Mode | published | Indicate the persmissions available to a connection. |
| Name | published | Specifies the name of the component as referenced in code. |
| Observers | public | Indicates the TObservers object added to the TComponent. |
| Owner | public | Indicates the component that is responsible for streaming and freeing this component. |
| Properties | public | Properties is the implementation of the Properties Collection object. |
| Provider | published | Specifies the provider for the ADO connection. |
| State | public | Indicates the current state of the ADO connection. |
| Tag | published | Stores a NativeInt integral value as a part of a component. |
| VCLComObject | public | Represents information used internally by components that support COM. |
| Version | public | Indicates the version of ADO used. |
上一篇:ADOQuery (Delphi)使用实例
下一篇:图片测量软件工具下载链接


微信扫一扫,打赏作者吧~