IVsContainedLanguageHost.GetVSHierarchy(IVsHierarchy) Method

Definition

Returns the hierarchy that contains the file displayed in the primary buffer.

public:
 int GetVSHierarchy([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ % ppVsHierarchy);
public:
 int GetVSHierarchy([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ &  ppVsHierarchy);
int GetVSHierarchy([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & & ppVsHierarchy);
public int GetVSHierarchy (out Microsoft.VisualStudio.Shell.Interop.IVsHierarchy ppVsHierarchy);
abstract member GetVSHierarchy : IVsHierarchy -> int
Public Function GetVSHierarchy (ByRef ppVsHierarchy As IVsHierarchy) As Integer

Parameters

ppVsHierarchy
IVsHierarchy

[out] Returns an IVsHierarchy object representing the hierarchy that owns the file displayed in the primary buffer.

Returns

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.

Applies to