SolutionConfiguration2.Name Property

Definition

Gets the name of the object.

C++/CX
public:
 property Platform::String ^ default { Platform::String ^ get(); };

Property Value

The name of the object.

Implements

Attributes

Examples

This example displays the active solution configuration item's name for the first item. Open a project in the Visual Studio integrated development environment (IDE) before running this example.

VB
Imports EnvDTE  
Imports EnvDTE80  
Sub SolutionConfigurationNameExample(ByVal dte As DTE2)  
    Try  
        Dim builder As SolutionBuild = _  
        _applicationObject.Solution.SolutionBuild  
        Dim config As SolutionConfiguration2  
        config = CType(builder.SolutionConfigurations.Item(1) _  
        , SolutionConfiguration2)  
        MsgBox("The name of the solution configuration is: "  _  
        & config.Name)  
    Catch ex As System.Exception  
        MsgBox(ex.ToString)  
    End Try  
End Sub  

Applies to

Produit Versions
Visual Studio SDK 2015, 2017, 2019, 2022