How to translate MS Windows OS version numbers into product names in .NET?

后端 未结 5 1713
长情又很酷
长情又很酷 2020-12-08 00:51

How to translate MS Windows OS version numbers into product names?

For example, in .NET the following two properties could be used to work out that the product is MS

5条回答
  •  北海茫月
    2020-12-08 01:17

    If you just want a GUI friendly informational message I used

    My.Computer.Info.OSFullName & " (" + My.Computer.Info.OSVersion + ")"

    Seems to be future proof for future versions of Windows

提交回复
热议问题