Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

ConfigurationManager Property (General Extensibility)

Visual Studio .NET 2003

Returns the ConfigurationManager Object for this item.

[Visual Basic .NET]
Public ReadOnly Property ConfigurationManager() As ConfigurationManager
[Visual Basic 6]
Property Get ConfigurationManager() As ConfigurationManager
HRESULT __stdcall get_ConfigurationManager(
   /* [out, retval] */ ConfigurationManager** retVal
ConfigurationManager ConfigurationManager {get;}
[JScript .NET]
public function get ConfigurationManager() : ConfigurationManager

Return Value

Returns a ConfigurationManager object.


The ConfigurationManager object represents the project configurations for a project or project item. Each project configuration is uniquely identified by a project configuration name and platform name.


Sub ConfigurationManagerExample()
   Dim SB As SolutionBuild = DTE.Solution.SolutionBuild
   Dim SolCtx As SolutionContext
   Dim CM As ConfigurationManager
   SolCtx = SB.SolutionConfigurations.Item(1).SolutionContexts.Item(1)
   CM = DTE.Solution.Projects.Item(1).ConfigurationManager
   MsgBox("Number of configurations: " & CM.Count)
End Sub

See Also

Configuration Object

Applies To: Project Object | ProjectItem Object

© 2015 Microsoft