Click or drag to resize

ZebraPrinterLinkOsGetPortStatus Method

Retrieve the TCP port status of the printer and returns a list of TcpPortStatus describing the open ports on the printer.

Namespace:  Zebra.Sdk.Printer
Assembly:  SdkApi.Core (in SdkApi.Core.dll) Version: 2.15.2634
Syntax
List<TcpPortStatus> GetPortStatus()

Return Value

Type: ListTcpPortStatus
List of open ports on the ZebraPrinter. Note: The open connection from the SDK will be listed.
Exceptions
ExceptionCondition
ConnectionExceptionIf there is an issue communicating with the printer (e.g. the connection is not open.)
Remarks
The open connection from the SDK will be listed in the return value. This method will throw a ConnectionException if it is unable to communicate with the printer.

Note: Tabletop printers support more than one established connection on the raw port at a time, so the same port may be listed more than once.
See Also