This documentation is archived and is not being maintained.

ConfigurationName Property (Configuration Object)

Visual Studio .NET 2003

Sets or returns the project configuration to be built.

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


ConfigurationName can be set to any defined project configuration named by the ProjectName property.


Sub ConfigurationNameExample()
   ' Before running, load a project.
   ' Set references to all necessary objects.
   Dim CM As ConfigurationManager = DTE.Solution.Projects.Item(1).ConfigurationManager
   ' List the configuration name used for the current project.
End Sub

See Also

ProjectName Property | SolutionContext Object

Applies To: Configuration Object