VsShellUtilities.GetCfgProvider Method
Gets the configuration provider object for a given project.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared Function GetCfgProvider ( _
hierarchy As IVsHierarchy _
) As IVsCfgProvider
public static IVsCfgProvider GetCfgProvider(
IVsHierarchy hierarchy
)
public:
static IVsCfgProvider^ GetCfgProvider(
IVsHierarchy^ hierarchy
)
static member GetCfgProvider :
hierarchy:IVsHierarchy -> IVsCfgProvider
public static function GetCfgProvider(
hierarchy : IVsHierarchy
) : IVsCfgProvider
Parameters
hierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchyThe project hierarchy.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop.IVsCfgProvider
The configuration provider.
Remarks
This method uses the established (by build manager) algorithm for accessing the configuration provider:
If the project provides a browse object, QI from the browse object.
Otherwise, if the project implements IVsGetCfgProvider, use GetCfgProvider
Otherwise, QI for IVsCfgProvider
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.