Export (0) Print
Expand All
ID
Top
Expand Minimize

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
[C++]
HRESULT __stdcall get_PlatformName(
   /* [out, retval] */ BSTR* retVal
);
[C#]
string PlatformName {get;}
[JScript .NET]
public function get PlatformName() : String

Remarks

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

Example

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

Show:
© 2014 Microsoft