IVsDataViewHierarchy.GetOtherViewHierarchy 方法

检索数据视图层次结构与特定服务器资源管理器连接。

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

语法

声明
Function GetOtherViewHierarchy ( _
    explorerConnection As IVsDataExplorerConnection _
) As IVsDataViewHierarchy
IVsDataViewHierarchy GetOtherViewHierarchy(
    IVsDataExplorerConnection explorerConnection
)
IVsDataViewHierarchy^ GetOtherViewHierarchy(
    IVsDataExplorerConnection^ explorerConnection
)
abstract GetOtherViewHierarchy : 
        explorerConnection:IVsDataExplorerConnection -> IVsDataViewHierarchy 
function GetOtherViewHierarchy(
    explorerConnection : IVsDataExplorerConnection
) : IVsDataViewHierarchy

参数

返回值

类型:Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataViewHierarchy
表示数据的 IVsDataViewHierarchy 对象查看特定连接的层次结构。

异常

异常 条件
ArgumentNullException

explorerConnection 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。

InvalidOperationException

数据提供程序与 explorerConnection 参数与当前数据提供程序不同。

.NET Framework 安全性

请参见

参考

IVsDataViewHierarchy 接口

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