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
explorerConnection
Type: Microsoft.VisualStudio.Data.Services.IVsDataExplorerConnectionThe explorer connection for which to get the data view hierarchy.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsDataViewHierarchy Interface
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace