This documentation is archived and is not being maintained.

PlatformName Property (General Extensibility)

Visual Studio .NET 2003

Returns the name of the platform supported by this assignment.

[Visual Basic .NET]
Public ReadOnly Property PlatformName() As String
[Visual Basic 6]
Property Get PlatformName() As String
HRESULT __stdcall get_PlatformName(
   /* [out, retval] */ BSTR* retVal
string PlatformName {get;}
[JScript .NET]
public function get PlatformName() : String


If the project supports no platforms, then PlatformName returns an empty string.


Sub PlatformNameExample()
   ' Ensure that all Debug project configurations are built for the
   ' Debug solution configuration.
   Dim config As SolutionConfiguration = DTE.Solution.SolutionBuild.SolutionConfigurations.Item("Debug")
   Dim context As SolutionContexts
   context = config.SolutionContexts

   MsgBox("Platform name : " & context.Item(1).PlatformName)
End Sub

See Also

ProjectName Property

Applies To: Configuration Object | SolutionContext Object