SolutionConfiguration2.PlatformName Property

Definition

Gets the target platform CPU for configuration.

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

Property Value

The name of the CPU platform.

Attributes

Examples

This example displays the active solution configuration item's CPU platform 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 SolutionConfigurationPlatformNameExample(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 platform name of the solution configuration is: " _  
        & config.PlatformName)  
    Catch ex As System.Exception  
        MsgBox(ex.ToString)  
    End Try  
End Sub  

Applies to

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