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
[C++]
HRESULT __stdcall get_ConfigurationName(
   /* [out, retval] */ BSTR* retVal
);
[C#]
public string ConfigurationName {get;}
[JScript .NET]
public function get ConfigurationName() : String

Remarks

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

Example

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.
   MsgBox(CM.Item(2).ConfigurationName)
End Sub

See Also

ProjectName Property | SolutionContext Object

Applies To: Configuration Object

Show: