IVsContainedLanguageHost::GetVSHierarchy Method (IVsHierarchy^)

 

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)

int GetVSHierarchy(
	[OutAttribute] IVsHierarchy^% ppVsHierarchy
)

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.

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.

Return to top
Show: