可以执行常规任务与数据连接在服务器资源管理器中,例如,添加、移除或查找连接,以及其他功能。
此 API 不兼容 CLS。
命名空间: Microsoft.VisualStudio.Data.Services
程序集: Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)
语法
声明
<GuidAttribute("8B6159D9-A634-4549-9EAC-8642744F1042")> _
<CLSCompliantAttribute(False)> _
Public Interface IVsDataExplorerConnectionManager
[GuidAttribute("8B6159D9-A634-4549-9EAC-8642744F1042")]
[CLSCompliantAttribute(false)]
public interface IVsDataExplorerConnectionManager
[GuidAttribute(L"8B6159D9-A634-4549-9EAC-8642744F1042")]
[CLSCompliantAttribute(false)]
public interface class IVsDataExplorerConnectionManager
[<GuidAttribute("8B6159D9-A634-4549-9EAC-8642744F1042")>]
[<CLSCompliantAttribute(false)>]
type IVsDataExplorerConnectionManager = interface end
public interface IVsDataExplorerConnectionManager
IVsDataExplorerConnectionManager 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
![]() |
Connections | 获取键/值对集合包含所有现有数据连接。 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
AddConnection | 添加具有指定属性的新数据连接。 |
![]() |
FindConnection | 搜索与指定属性的现有数据连接。 |
![]() |
PromptAndAddConnection | 提示用户提供连接对话框添加在服务器资源管理器中新连接。 |
![]() |
RemoveConnection | 从服务器资源管理器移除现有数据连接。 |
![]() |
SelectConnection | 在服务器资源管理器中选择指定的数据连接。 |
页首
备注
此接口实现为内置DDEX服务。