Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieving OS name

Tags:

.net

version

Is there any way to get the OS name the user is currently using?

like image 909
Hanny Avatar asked May 22 '26 21:05

Hanny


1 Answers

You can use

System.Environment

class

Environment.OSVersion.ToString()

See Environment.OSVersion Property

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

like image 76
rahul Avatar answered May 24 '26 12:05

rahul



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!