IVsErrorItem.GetHierarchy Method

Provides the hierarchy for the item if the error involves a project hierarchy item.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'宣言
Function GetHierarchy ( _
    <OutAttribute> ByRef ppProject As IVsHierarchy _
) As Integer
'使用
Dim instance As IVsErrorItem
Dim ppProject As IVsHierarchy
Dim returnValue As Integer

returnValue = instance.GetHierarchy(ppProject)
int GetHierarchy(
    out IVsHierarchy ppProject
)
int GetHierarchy(
    [OutAttribute] IVsHierarchy^% ppProject
)
function GetHierarchy(
    ppProject : IVsHierarchy
) : int

Parameters

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsErrorItem::GetHierarchy(
   [out] IVsHierarchy** ppProject
);

Permissions

See Also

Reference

IVsErrorItem Interface

IVsErrorItem Members

Microsoft.VisualStudio.Shell.Interop Namespace