网淘巴来吧,欢迎您!

返回首页 微信
微信
手机版
手机版

Data.Win.ADODB.TADOConnection详解

2021-08-13 新闻来源:网淘巴 围观:1062
''

TADOConnection

Delphi

TADOConnection = class(TCustomConnection, IUnknown, ConnectionEventsVT)

C++

class PASCALIMPLEMENTATION TADOConnection : public Data::Db::TCustomConnection

Contents

 [hide

属性

TypeVisibilitySourceUnitParent
classpublicData.Win.ADODB.pasData.Win.ADODB.hppData.Win.ADODBData.Win.ADODB

描述

TADOConnection 连接到 ADO 数据存储。 TADOConnection 封装了 ADO 连接对象。 使用 TADOConnection 连接到 ADO 数据存储。 单个 TADOConnection 组件提供的连接可以由多个 ADO command和dataset 组件通过它们的 Connection 属性共享。 TADOConnection 允许您控制与数据存储的连接的属性和条件。 使用 TADOConnection 的属性来控制诸如记录锁定方案(乐观与悲观)、游标类型、游标位置、隔离级别和连接超时等属性。 还提供了用于实现事务和检索有关此组件连接到的数据库的元数据的方法。


属性

Attributespublished指定自动事务行为。
CommandCountpublic指示与连接关联的命令组件的数量。
Commandspublic列出连接组件的所有活动命令。
CommandTimeoutpublished

翻译结果

指定尝试执行命令的时间量。
ComObjectpublicSpecifies the interface reference implemented by the component.
ComponentCountpublicIndicates the number of components owned by the component.
ComponentIndexpublicIndicates the position of the component in its owner's Components property array.
ComponentspublicLists all components owned by the component.
ComponentStatepublicDescribes the current state of the component, indicating when a component needs to avoid certain actions.
ComponentStylepublicGoverns the behavior of the component.
Connectedpublished
ConnectionObjectpublicProvides direct access to the ADO connection object.
ConnectionStringpublishedSpecifies the connection information for the data store.
ConnectionTimeoutpublishedSpecifies amount of time to attempt a connection.
ConnectOptionspublishedSpecifies whether a connection is synchronous or asynchronous.
CursorLocationpublishedSpecifies whether cursors for the connection is client-side or server-side.
DataSetCountpublicIndicates the number of datasets associated with the connection component.
DataSetspublicProvides an indexed array of all active datasets for a connection component.
DefaultDatabasepublishedIndicates the database the ADO connection uses by default.
DesignInfopublicContains information used by the Form designer.
ErrorspublicErrors is the implementation of the Errors Collection.
InTransactionpublicIndicates whether a transaction is in progress.
IsolationLevelpublishedSpecifies the transaction isolation level for transactions.
KeepConnectionpublishedSpecifies whether an application remains connected to a database even if no datasets are open.
LoginPromptpublished
ModepublishedIndicate the persmissions available to a connection.
NamepublishedSpecifies the name of the component as referenced in code.
ObserverspublicIndicates the TObservers object added to the TComponent.
OwnerpublicIndicates the component that is responsible for streaming and freeing this component.
PropertiespublicProperties is the implementation of the Properties Collection object.
ProviderpublishedSpecifies the provider for the ADO connection.
StatepublicIndicates the current state of the ADO connection.
TagpublishedStores a NativeInt integral value as a part of a component.
VCLComObjectpublicRepresents information used internally by components that support COM.
VersionpublicIndicates the version of ADO used.


免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏

本文链接:https://www.wtao8.com/post/156.html 转载需授权!

分享到:

相关文章

龙年
大发