Environment.OSVersion Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets an OperatingSystem object that contains the current platform identifier and version number.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| InvalidOperationException | This property was unable to obtain the system version. -or- The obtained platform identifier is not a member of PlatformID. |
Show: