My.Computer.Ports.SerialPortNames : SerialPort « Development « VB.Net Tutorial






Option Strict On

Imports System.Collections.ObjectModel

Public Module PortsTest
   Public Sub Main()
      Dim ports As ReadOnlyCollection(Of String) = _
      My.Computer.Ports.SerialPortNames
      For Each port As String In ports
         Console.WriteLine(port)
      Next
   End Sub
End Module
COM3








7.34.SerialPort
7.34.1.My.Computer.Ports.SerialPortNames
7.34.2.Write to Serial Port