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

声明
Property ConfigurationName As String
用法
Dim instance As VCConfiguration
Dim value As String

value = instance.ConfigurationName

instance.ConfigurationName = value
string ConfigurationName { get; set; }
property String^ ConfigurationName {
    String^ get ();
    void set (String^ value);
}
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

Permissions

See Also

Reference

VCConfiguration Interface

VCConfiguration Members

Microsoft.VisualStudio.VCProjectEngine Namespace