How to get Bus Reported Device Description using C#

后端 未结 4 726
心在旅途
心在旅途 2021-01-19 01:10

I am trying to get a value from windows device manager(windows 7).

The property name i am searching for is Bus Reported Device Description.

I am using the

4条回答
  •  感动是毒
    2021-01-19 01:44

    To go off of vromanov's code. All you have to do is the following to get the bus description of each com port, where 0 is the First Com, 1 would be the second, and so on.

    Console.WriteLine(Win32DeviceMgmt.GetAllCOMPorts()[0].bus_description);

提交回复
热议问题