System.PlatformID Enumeration

Identifies the operating system, or platform, supported by an assembly.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public enum PlatformID

Remarks

Use the Environment.OSVersion and OperatingSystem.Platform properties to obtain the PlatformID enumeration for the currently executing operating system or development platform. Use the PlatformID enumeration to help determine whether the current operating system or development platform supports your application.

You can use the underlying integer value of each PlatformID enumeration member, as shown in the table, as the PlatformId argument for the SignTool.exe (Sign Tool) utility.

PlatformID.Win32S

0

PlatformID.Win32Windows

1

PlatformID.Win32NT

2

PlatformID.WinCE

3

PlatformID.Unix

4

PlatformID.Xbox

5

PlatformID.MacOSX

6

Members

Member NameDescription
MacOSX

The operating system is Macintosh.

Unix

The operating system is Unix.

Win32NT

The operating system is Windows NT or later.

Win32S

The operating system is Win32s. Win32s is a layer that runs on 16-bit versions of Windows to provide access to 32-bit applications.

Win32Windows

The operating system is Windows 95 or Windows 98.

WinCE

The operating system is Windows CE.

Xbox

The development platform is Xbox 360.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0