Name of the serial port.
Read/Write
| Visual Basic |
PortName As String
|
|---|---|
| Visual C++ (MFC) |
CString get_PortName();
void put_PortName(LPCTSTR value);
|
| Visual C++ (#import) |
_bstr_t PortName;
|
String containing the name of the serial port.
The property may throw exception. Use GetLastError method to get the error code.