OperatingSystem Constructor
Collapse the table of content
Expand the table of content

OperatingSystem Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the OperatingSystem class, using the specified platform identifier value and version object.

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

public OperatingSystem(
	PlatformID platform,
	Version version
)

Parameters

platform
Type: System.PlatformID
One of the PlatformID values that indicates the operating system platform.
version
Type: System.Version
A Version object that indicates the version of the operating system.

ExceptionCondition
ArgumentNullException

version is null.

ArgumentException

platform is not a PlatformID enumeration value.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft