Condividi tramite


VCConfiguration.ConfigurationName Property

Definition

Gets or sets the project configuration to be built.

public:
 property System::String ^ ConfigurationName { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ ConfigurationName { Platform::String ^ get(); void set(Platform::String ^ value); };
[System.Runtime.InteropServices.DispId(700)]
public string ConfigurationName { [System.Runtime.InteropServices.DispId(700)] get; [System.Runtime.InteropServices.DispId(700)] set; }
[<System.Runtime.InteropServices.DispId(700)>]
[<get: System.Runtime.InteropServices.DispId(700)>]
[<set: System.Runtime.InteropServices.DispId(700)>]
member this.ConfigurationName : string with get, set
Public Property ConfigurationName As String

Property Value

The project configuration to be built.

Attributes

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  

Remarks

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

Applies to