通过使用适当中的 ADO.NET 对象,提供了实现 IVsDataConnectionSupport 接口以及 IVsDataCommand、IVsDataAsyncCommand和 IVsDataTransaction 接口的泛间接实现。
继承层次结构
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) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。