DataConnectionSupport 类

定义

表示 IVsDataConnectionSupport 接口的实现。

public ref class DataConnectionSupport abstract : Microsoft::VisualStudio::Data::Framework::DataSiteableServiceProvider<Microsoft::VisualStudio::Data::Services::IVsDataConnection ^>, IDisposable, IServiceProvider, Microsoft::VisualStudio::Data::Services::IVsDataConnectionEvents, Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataConnectionSupport
public abstract class DataConnectionSupport : Microsoft.VisualStudio.Data.Framework.DataSiteableServiceProvider<Microsoft.VisualStudio.Data.Services.IVsDataConnection>, IDisposable, IServiceProvider, Microsoft.VisualStudio.Data.Services.IVsDataConnectionEvents, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataConnectionSupport
type DataConnectionSupport = class
    inherit DataSiteableServiceProvider<IVsDataConnection>
    interface IVsDataConnectionSupport
    interface IServiceProvider
    interface IDisposable
    interface IVsDataConnectionEvents
Public MustInherit Class DataConnectionSupport
Inherits DataSiteableServiceProvider(Of IVsDataConnection)
Implements IDisposable, IServiceProvider, IVsDataConnectionEvents, IVsDataConnectionSupport
继承
派生
实现

构造函数

DataConnectionSupport()

初始化 DataConnectionSupport 类的新实例。

属性

ConnectionString

获取或设置建立指定数据源连接所需的信息的字符串表示形式。

ConnectionTimeout

获取或设置在终止尝试并生成超时错误之前建立连接时要等待的时间量。

ParentProvider

获取父服务提供程序的当前实例。

(继承自 ServiceProvider)
ProviderObject

获取支持当前数据连接的基础数据提供程序。

ServiceProvider

获取全局 Visual Studio 服务提供程序。

Site

获取或设置站点。

(继承自 DataSiteableServiceProvider<T>)
State

获取数据连接的状态。

方法

AddService(Type, Object)

将指定的服务添加到服务的内部集合。

(继承自 ServiceProvider)
AddService(Type, Object, Boolean)

将指定的服务添加到服务对象的集合或父服务容器。

(继承自 ServiceProvider)
AddService(Type, ServiceCreatorCallback)

将指定的服务添加到服务的内部集合。

(继承自 ServiceProvider)
AddService(Type, ServiceCreatorCallback, Boolean)

将指定的服务添加到服务的内部集合或父服务容器。

(继承自 ServiceProvider)
Close()

关闭指定的连接。

CreateService(IServiceContainer, Type)

创建新的服务对象,指定接口服务类型。

Dispose()

释放数据连接保留的所有资源。

Dispose(Boolean)

释放数据连接保留的所有资源。

Finalize()

销毁数据连接支持对象时释放数据连接保留的所有资源。

GetService(Guid)

检索具有指定服务 GUID 的服务。

(继承自 ServiceProvider)
GetService(Type)

检索指定类型的服务。

(继承自 ServiceProvider)
Initialize(Object)

从现有数据提供程序对象(可选)初始化指定的连接。

OnMessageReceived(DataConnectionMessageReceivedEventArgs)

处理 MessageReceived 事件。

OnSiteChanged(EventArgs)

引发 SiteChanged 事件。

(继承自 DataSiteableServiceProvider<T>)
OnStateChanged(DataConnectionStateChangedEventArgs)

处理 StateChanged 事件。

Open(Boolean)

打开指定的数据连接。

RemoveService(Type)

从内部服务集合中删除指定的服务

(继承自 ServiceProvider)
RemoveService(Type, Boolean)

从内部服务集合或父服务容器中删除指定的服务。

(继承自 ServiceProvider)

事件

MessageReceived

从数据源接收消息时发生。

SiteChanged

在网站更改时发生。

(继承自 DataSiteableServiceProvider<T>)
StateChanged

在数据连接状态更改时发生。

显式接口实现

IServiceProvider.QueryService(Guid, Guid, IntPtr)

作为通过 IServiceProvider 实现公开的服务的工厂执行。

(继承自 ServiceProvider)

扩展方法

QueryService(IServiceProvider, Guid)

获取由服务提供商基于其服务 GUID 公开的服务。

QueryService<TService>(IServiceProvider)

获取服务提供程序根据其服务类型公开的服务。

适用于