Getting the name of the operating system

Is there a way to get the name of the OS that the user is currently using?

+3
source share
3 answers

you can use

System.Environment

the class

Environment.OSVersion.ToString()

See Environment.OSVersion Property

Gets an OperatingSystem object that contains the current platform identifier and version number.

+4
source

You can use the Environment.OSVersion property .

Version version = Environment.OSVersion;

, wikipedia Microsoft Windows. , 6.1.7600, Windows 7, Windows Server 2008 R2.

: API , .

0

. Environment.OSVersion.ToString() .

, . Win95 Win7.

, , , , .

0

Source: https://habr.com/ru/post/1736957/


All Articles