IVsDataViewHierarchy.GetOtherViewHierarchy Method

Retrieves the data view hierarchy associated with the given Server Explorer connection.

Namespace:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'宣言
Function GetOtherViewHierarchy ( _
    explorerConnection As IVsDataExplorerConnection _
) As IVsDataViewHierarchy
'使用
Dim instance As IVsDataViewHierarchy
Dim explorerConnection As IVsDataExplorerConnection
Dim returnValue As IVsDataViewHierarchy

returnValue = instance.GetOtherViewHierarchy(explorerConnection)
IVsDataViewHierarchy GetOtherViewHierarchy(
    IVsDataExplorerConnection explorerConnection
)
IVsDataViewHierarchy^ GetOtherViewHierarchy(
    IVsDataExplorerConnection^ explorerConnection
)
function GetOtherViewHierarchy(
    explorerConnection : IVsDataExplorerConnection
) : IVsDataViewHierarchy

Parameters

Return Value

Type: Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataViewHierarchy

An IVsDataViewHierarchy object representing the data view hierarchy for the given connection.

Exceptions

Exception Condition
ArgumentNullException

The explorerConnection parameter is a null reference (Nothing in Visual Basic).

InvalidOperationException

The data provider associated with the explorerConnection parameter differs from the current data provider.

Permissions

See Also

Reference

IVsDataViewHierarchy Interface

IVsDataViewHierarchy Members

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace