通过使用适当的ADO.NET对象,提供 IVsDataConnectionSupport 接口的实现和 IVsDataCommand、 IVsDataAsyncCommand和 IVsDataTransaction 接口的一个间接实现。
继承层次结构
System.Object
Microsoft.VisualStudio.Data.Framework.ServiceProvider
Microsoft.VisualStudio.Data.Framework.DataSiteableServiceProvider<IVsDataConnection>
Microsoft.VisualStudio.Data.Framework.DataConnectionSupport
Microsoft.VisualStudio.Data.Framework.AdoDotNet.AdoDotNetConnectionSupport
命名空间: Microsoft.VisualStudio.Data.Framework.AdoDotNet
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)
语法
声明
Public Class AdoDotNetConnectionSupport _
Inherits DataConnectionSupport _
Implements IVsDataSiteableObject(Of IVsDataProvider)
public class AdoDotNetConnectionSupport : DataConnectionSupport,
IVsDataSiteableObject<IVsDataProvider>
public ref class AdoDotNetConnectionSupport : public DataConnectionSupport,
IVsDataSiteableObject<IVsDataProvider^>
type AdoDotNetConnectionSupport =
class
inherit DataConnectionSupport
interface IVsDataSiteableObject<IVsDataProvider>
end
public class AdoDotNetConnectionSupport extends DataConnectionSupport implements IVsDataSiteableObject<IVsDataProvider>
AdoDotNetConnectionSupport 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
AdoDotNetConnectionSupport | 初始化 AdoDotNetConnectionSupport 类的实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
Connection | 获取当前连接使用的 DbConnection 对象支持实例。 |
![]() |
ConnectionString | 获取或设置所需的信息的字符串表示形式生成指定的数据源将连接。 (重写 DataConnectionSupport.ConnectionString。) |
![]() |
ConnectionTimeout | (获取或设置时,等待,在终止在尝试和生成超时错误之前建立连接。 (重写 DataConnectionSupport.ConnectionTimeout。) |
![]() |
CurrentCommand | 获取当前连接当前使用的 DbCommand 对象支持实例。 |
![]() |
CurrentTransaction | 获取当前连接当前使用的 DbTransaction 对象支持实例。 |
![]() |
InAsyncMode | 获取指示连接是否的值在异步模式。 |
![]() |
ParentProvider | 获取父服务提供程序的当前实例。 (继承自 ServiceProvider。) |
![]() |
ProviderObject | 获取指定的连接的基础提供程序对象。 (重写 DataConnectionSupport.ProviderObject。) |
![]() |
ServiceProvider | 获取全局 Visual Studio 服务提供程序。 (继承自 DataConnectionSupport。) |
![]() |
Site | 获取或设置该站点。 (继承自 DataSiteableServiceProvider<T>。) |
![]() |
State | 获取数据连接的状态。 (重写 DataConnectionSupport.State。) |
页首
方法
页首
事件
名称 | 说明 | |
---|---|---|
![]() |
MessageReceived | 当消息从数据源,接收发生。 (继承自 DataConnectionSupport。) |
![]() |
SiteChanged | 当站点已更改,发生。 (继承自 DataSiteableServiceProvider<T>。) |
![]() |
StateChanged | 数据连接的状态更改时,发生。 (继承自 DataConnectionSupport。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
![]() ![]() |
IServiceProvider.QueryService | 执行为通过 IServiceProvider的实现中显示的服务的一个工厂。 (继承自 ServiceProvider。) |
![]() ![]() |
IVsDataSiteableObject<IVsDataProvider>.Site | 获取当前连接当前使用的 IVsDataProvider 对象支持实例。 |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。