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.
Assembly: mscorlib (in mscorlib.dll)
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | version is null. |
| ArgumentException | platform is not a PlatformID enumeration value. |
Show: