VsShellUtilities::GetCfgProvider Method (IVsHierarchy^)

 

Gets the configuration provider object for a given project.

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

public:
static IVsCfgProvider^ GetCfgProvider(
	IVsHierarchy^ hierarchy
)

Parameters

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

The project hierarchy.

Return Value

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

The configuration provider.

This method uses the established (by build manager) algorithm for accessing the configuration provider:

  1. If the project provides a browse object, QI from the browse object.

  2. Otherwise, if the project implements IVsGetCfgProvider, use GetCfgProvider

  3. Otherwise, QI for IVsCfgProvider

Return to top
Show: