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
)
abstract GetHierarchy :
ppProject:IVsHierarchy byref -> int
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
);
.NET Framework Security
- 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.