IVsContainedLanguageHost.GetVSHierarchy Method
Returns the hierarchy that contains the file displayed in the primary buffer.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Syntax
声明
Function GetVSHierarchy ( _
<OutAttribute> ByRef ppVsHierarchy As IVsHierarchy _
) As Integer
int GetVSHierarchy(
out IVsHierarchy ppVsHierarchy
)
int GetVSHierarchy(
[OutAttribute] IVsHierarchy^% ppVsHierarchy
)
abstract GetVSHierarchy :
ppVsHierarchy:IVsHierarchy byref -> int
function GetVSHierarchy(
ppVsHierarchy : IVsHierarchy
) : int
Parameters
- ppVsHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy%
[out] Returns an IVsHierarchy object representing the hierarchy that owns the file displayed in the primary buffer.
Return Value
Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.
Remarks
COM Signature
From singlefileeditor.idl:
HRESULT GetVSHierarchy(
[out] IVsHierarchy** ppVsHierarchy
);
This method is called by the contained language to support a call to the GetHierarchy method in the IVsErrorItem interface since the secondary buffer that the contained language uses is not part of a hierarchy.
.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.