DataExplorerConnectionManager 类

提供使与 服务器资源管理器显示的数据连接的编程方式交互的方法和属性。

继承层次结构

System.Object
  Microsoft.VisualStudio.Data.DataExplorerConnectionManager

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

语法

声明
<GuidAttribute("D8D207DA-64EB-4b46-9740-282F5F458B22")> _
Public MustInherit Class DataExplorerConnectionManager _
    Implements ICollection, IEnumerable
[GuidAttribute("D8D207DA-64EB-4b46-9740-282F5F458B22")]
public abstract class DataExplorerConnectionManager : ICollection, 
    IEnumerable
[GuidAttribute(L"D8D207DA-64EB-4b46-9740-282F5F458B22")]
public ref class DataExplorerConnectionManager abstract : ICollection, 
    IEnumerable
[<AbstractClass>]
[<GuidAttribute("D8D207DA-64EB-4b46-9740-282F5F458B22")>]
type DataExplorerConnectionManager =  
    class
        interface ICollection
        interface IEnumerable
    end
public abstract class DataExplorerConnectionManager implements ICollection, IEnumerable

DataExplorerConnectionManager 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 DataExplorerConnectionManager 选件类构造函数。此成员支持DDEX基础结构并且不应在代码中直接使用。

页首

属性

  名称 说明
公共属性 Count 检索指定当前数据连接数整数值显示在服务器资源管理器中。

页首

方法

  名称 说明
公共方法 AddConnection 添加新连接到服务器资源管理器窗口与指定的连接设置。
公共方法 CopyTo 复制所有 DataExplorerConnection 对象实例添加到数组,开始在指定的索引。
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 FindConnection(String) 找到与指定的显示名称的 DataExplorerConnection 对象实例。
公共方法 FindConnection(Guid, String, Boolean) 找到与指定的连接设置的 DataExplorerConnection 对象实例。
公共方法 GetConnections 检索包含所有当前 DataExplorerConnection 实例的数组。
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 PromptAndAddConnection 提示用户为,并添加,新 DataExplorerConnection 对象实例。
公共方法 RemoveConnection 从中移除现有 DataExplorerConnection 对象实例设置当前连接。
公共方法 SelectConnection 选择在服务器资源管理器树视图的特定数据连接。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 ICollection.CopyTo 复制在 Visual Studio所公开的连接服务器资源管理器 与数组,开始在指定的数组索引。
显式接口实现私有方法 IEnumerable.GetEnumerator 检索可以通过连接循环访问集合的枚举数。
显式接口实现私有属性 ICollection.IsSynchronized 检索一个值对连接访问集合中是否同步(线程安全)。
显式接口实现私有属性 ICollection.SyncRoot 检索可用于同步对连接访问集合中的对象。

页首

备注

根据所使用的 Visual Studio 版本,包含数据连接的工具窗口可以调用Server Explorer,数据库资源管理器或数据资源管理器。无论使用哪种该术语,但是,DataExplorerConnectionManager 选件类来管理形式出现在"数据连接"节点下的子节点。Visual Studio的任何连接节点。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.VisualStudio.Data 命名空间

DataExplorerConnection

ICollection

IEnumerable