Share via


VCConfiguration.ConfigurationName Property

Gets or sets the project configuration to be built.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

'Declaration
Property ConfigurationName As String
    Get
    Set
string ConfigurationName { get; set; }
property String^ ConfigurationName {
    String^ get ();
    void set (String^ value);
}
abstract ConfigurationName : string with get, set
function get ConfigurationName () : String
function set ConfigurationName (value : String)

Property Value

Type: System.String
The project configuration to be built.

Remarks

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

Examples

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

.NET Framework Security

See Also

Reference

VCConfiguration Interface

Microsoft.VisualStudio.VCProjectEngine Namespace