VsShellUtilities::GetHierarchy Method (IServiceProvider^, Guid)

 

Gets the hierarchy node that is specified by the project GUID.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
static IVsHierarchy^ GetHierarchy(
	IServiceProvider^ site,
	Guid projectGuid
)

Parameters

site
Type: System::IServiceProvider^

IServiceProvider.

projectGuid
Type: System::Guid

The GUID of the project.

Return Value

Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

The IVsHierarchy interface of the project.

If the project is not open, this method will catch and trace an InvalidCastException.

Return to top
Show: