LinePrinterException.PortName Property

The active communications port.

Syntax

[Visual Basic]
Public ReadOnly Property PortName As String
[C#]
public string PortName {get;}

Values

PortName can be one of these values:

PortName PRINTER_ERROR Interpretation
NPCP ErrorCode contains an NPCP error code. Check NPCP documentation to determine meaning.
IRDA ERROR_NOIRDADEVICE: No IRDA device in range.
COR_E_IO: Check InnerException for System.IO.IOException.
Serial ErrorCode contains the GetLastError of the Win32 function that returned an error.
WIFI ErrorCode contains a socket error returned by the system.

More Information

LinePrinterException Class