Click or drag to resize

CardConnectionReestablisherReestablishConnection Method

Reestablishes a connection to a printer that may have been closed due to an event, like a reboot.

Namespace:  Zebra.Sdk.Card.Comm
Assembly:  SdkApi_Card_Core (in SdkApi_Card_Core.dll) Version: 2.14.1989
Syntax
void ReestablishConnection(
	CardPrinterReconnectionHandler handler
)

Parameters

handler
Type: Zebra.Sdk.Card.PrinterCardPrinterReconnectionHandler
Handles recreating and opening a connection to a printer.
Exceptions
ExceptionCondition
DiscoveryExceptionIf the printer cannot be found.
ConnectionExceptionIf the connection cannot be created or opened.
TimeoutExceptionIf a connection cannot be reestablished after a defined timeout.
ZebraCardExceptionIf the device is busy or if the connection cannot talk to the printer.
See Also