最終更新:2015-07-29 (水) 16:20:03 (3186d)
Environment.OSVersion
Top / Environment.OSVersion
現在のプラットフォーム ID とバージョン番号を格納しているSystem.OperatingSystemオブジェクトを取得します。
メモ
- System.OperatingSystem.ToString?()
Windows 7 SP1 Microsoft Windows NT 6.1.7601 Service Pack 1 Windows 8.1 (マニフェストなし) Microsoft Windows NT 6.2.9200.0 Windows XP Microsoft Windows NT 5.1.2600 Service Pack 3 Windows XP Professional x64 Edition Microsoft Windows NT 5.2.3790 Service Pack 1
Operating system version changes in Windows 8.1 and Windows Server 2012 R2
- In Windows 8.1, the GetVersionEx APIs have been deprecated. That means that while you can still call the APIs, if your app does not specifically target Windows 8.1, you will get Windows 8 versioning (6.2.0.0).
- https://msdn.microsoft.com/en-us/library/windows/desktop/dn302074.aspx