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
'Usage
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
ppProject
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy%[out] Pointer to a IVsHierarchy interface providing hierarchy information about the error.
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
- 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.