.NET Framework 2.0ã§ã¯ãã·ãªã¢ã«ã»ãã¼ããåãæ±ãSerialPortã¯ã©ã¹ï¼System.IO.Portsåå空éï¼ã追å ããã¦ãããæ¬ç¨¿ã§ã¯ãã®ã¯ã©ã¹ã使ã£ã¦ãç¾å¨ã®ã³ã³ãã¥ã¼ã¿ãæã¤ãã¹ã¦ã®ã·ãªã¢ã«ã»ãã¼ãã®ååï¼COM1ãCOM2ãªã©ï¼ãåæããæ¹æ³ã説æããã ã·ãªã¢ã«ã»ãã¼ãåãåæããã«ã¯ãSerialPortã¯ã©ã¹ã®æ¬¡ã®ã¡ã½ãããå¼ã³åºãã°ããã GetPortNamesã¡ã½ãã ãã®ã¡ã½ããã¯ãã©ã¡ã¼ã¿ãæãããæ»ãå¤ã¨ãã¦æååé åãè¿ãã 次ã®ã³ã¼ãã¯ãå®éã«GetPortNamesã¡ã½ããã使ã£ã¦ã·ãªã¢ã«ã»ãã¼ãåãåæãã¦ããä¾ã ã using System; using System.IO.Ports; class Program { static void Main(string[] args) { // ãã¹ã¦ã®ã·ãªã¢ã«ã»ãã¼ãåãåå¾ãã
{{#tags}}- {{label}}
{{/tags}}