The GetPortName method returns serial port name by its index. Total number of serial ports can be obtained by GetCount property.
Parameters
iNumber
[in] zero-based serial port index number.
Return Values
The GetPortName method returns serial ports name by i's index.