PortName Property

Name of the serial port.

Access

Read/Write

Syntax

Visual Basic
PortName As String
Visual C++ (MFC)
CString get_PortName(); 
void put_PortName(LPCTSTR value);   
Visual C++ (#import)
_bstr_t PortName;

Return Value

String containing the name of the serial port.

Errors

The property may throw exception. Use GetLastError method to get the error code.