Edit

Share via


ComputerInfo.OSPlatform Property

Definition

Gets the platform identifier for the operating system of the computer.

public:
 property System::String ^ OSPlatform { System::String ^ get(); };
public string OSPlatform { get; }
member this.OSPlatform : string
Public ReadOnly Property OSPlatform As String

Property Value

A String containing the platform identifier for the operating system of the computer, chosen from the member names of the PlatformID enumeration.

Exceptions

The application cannot obtain the operating-system platform information.

Examples

This example uses the My.Computer.Info.OSPlatform property to display the platform of the computer's operating system.

MsgBox("Computer's operating system platform: " & 
    My.Computer.Info.OSPlatform)

Remarks

The My.Computer.Info.OSPlatform property provides functionality similar to the Platform property of the object returned by the OSVersion property.

Applies to

See also