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
ID
Top
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
[C++]
HRESULT __stdcall get_ConfigurationManager(
   /* [out, retval] */ ConfigurationManager** retVal
);
[C#]
ConfigurationManager ConfigurationManager {get;}
[JScript .NET]
public function get ConfigurationManager() : ConfigurationManager

Return Value

Returns a ConfigurationManager object.

Remarks

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.

Example

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

Show:
© 2015 Microsoft