IVsContainedLanguageHost.GetVSHierarchy(IVsHierarchy) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.