Partager via


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

'Declaration
Function GetHierarchy ( _
    <OutAttribute> ByRef ppProject As IVsHierarchy _
) As Integer
int GetHierarchy(
    out IVsHierarchy ppProject
)
int GetHierarchy(
    [OutAttribute] IVsHierarchy^% ppProject
)
abstract GetHierarchy : 
        ppProject:IVsHierarchy byref -> int
function GetHierarchy(
    ppProject : IVsHierarchy
) : int

Parameters

Return Value

Type: 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
);

.NET Framework Security

See Also

Reference

IVsErrorItem Interface

Microsoft.VisualStudio.Shell.Interop Namespace