Udostępnij za pośrednictwem


Accessing the Computer's Ports (Visual Basic)

The My.Computer.Ports object provides a property and a method for accessing the computer's serial ports.

In This Section

Reference

  • Ports
    Describes the My.Computer.Ports object and its members.

  • SerialPortNames
    Describes the SerialPortNames property, which gets a collection of the names of the serial ports on the computer.

  • OpenSerialPort
    Describes the OpenSerialPort method, which creates and opens a System.IO.Ports.SerialPort object.