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.13.898
Syntax List<TcpPortStatus> GetPortStatus()
Function GetPortStatus As List(Of TcpPortStatus)
List<TcpPortStatus^>^ GetPortStatus()
Return Value
Type:
ListTcpPortStatusList of open ports on the ZebraPrinter. Note: The open connection from the SDK will be listed.
Exceptions Exception | Condition |
---|
ConnectionException | If 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