简体   繁体   中英

C# how to detect serial port programatically

i want to detect/Configure serial port (COM Port) on which my device is connected automatically. Is it possible to do so in c#?

What exactly you like to do? Did you look at Properties and Methods in System.IO.Ports class?

Following MSDN article may help.

http://msdn.microsoft.com/en-us/library/system.io.ports.serialport(v=vs.110).aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM