상세 컨텐츠

본문 제목

통신 가능한 시리얼 포트 가져오기

C#

by xarfox 2010. 8. 12. 10:11

본문


One of the (several) new methods that is supported, and one I'm very glad is finally here, is the ability to obtain a list of the COM ports installed on the computer (ex: COM1, COM2, COM4). This is definately helpful when you want to present the list of ports avalible for the user to select from (as in the SerialPortTerminal.zip Win App example).

foreach (string s in SerialPort.GetPortNames()) System.Diagnostics.Trace.WriteLine(s);

관련글 더보기