IVsDataConnectionSupport 接口

表示公开方法和属性使您能够直接与数据源的连接一起使用的接口。

命名空间:  Microsoft.VisualStudio.Data.Services.SupportEntities
程序集:  Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)

语法

声明
Public Interface IVsDataConnectionSupport _
    Inherits IServiceProvider, IDisposable
public interface IVsDataConnectionSupport : IServiceProvider, 
    IDisposable
public interface class IVsDataConnectionSupport : IServiceProvider, 
    IDisposable
type IVsDataConnectionSupport =  
    interface
        interface IServiceProvider
        interface IDisposable
    end
public interface IVsDataConnectionSupport extends IServiceProvider, IDisposable

IVsDataConnectionSupport 类型公开以下成员。

属性

  名称 说明
公共属性 ConnectionString 当实现由选件类,则获取或设置所需的信息的字符串表示形式生成指定的数据源将连接。
公共属性 ConnectionTimeout 当实现由选件类,则获取或设置要等待的时间量,在建立连接时在终止在尝试和生成超时错误之前。
公共属性 ProviderObject 当实现由选件类,获取指定的连接的基础提供程序对象。
公共属性 State 当实现由选件类,获取数据连接的状态。

页首

方法

  名称 说明
公共方法 Close 当实现由选件类,关闭指定的连接。
公共方法 Dispose 执行与释放或重置非托管资源相关的应用程序定义的任务。 (继承自 IDisposable。)
公共方法 GetService 获取指定类型的服务对象。 (继承自 IServiceProvider。)
公共方法 Initialize 当实现由选件类,初始化指定的连接,并且可以从现有数据提供程序对象。
公共方法 Open 当实现由选件类,打开指定的数据连接。

页首

备注

此接口具有一个基实现。DDEX结构。

请参见

参考

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空间