共用方式為


PlatformID Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
<ComVisibleAttribute(True)> _
Public Enumeration PlatformID
[ComVisibleAttribute(true)]
public enum PlatformID

Members

Member name Description
Supported by Silverlight for Windows PhoneSupported by Xbox 360 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.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Win32Windows The operating system is Windows 95 or later.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Win32NT The operating system is Windows NT or later.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 WinCE The operating system is Windows CE.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Unix The operating system is Unix.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Xbox The development platform is Xbox 360.
MacOSX The operating system is Macintosh.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 NokiaS60 The operating system is Nokia S60.

Not supported. Present in Silverlight for Windows Phone.

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference