Click or drag to resize

NetworkCardDiscovererFindPrinters Method (DiscoveryHandler)

This method will search the network using a combination of discovery methods to find printers on the network.

Namespace:  Zebra.Sdk.Card.Printer.Discovery
Assembly:  SdkApi_Card_Core (in SdkApi_Card_Core.dll) Version: 2.14.1989
Syntax
public static void FindPrinters(
	DiscoveryHandler discoveryHandler
)

Parameters

discoveryHandler
Type: Zebra.Sdk.Printer.DiscoveryDiscoveryHandler
A DiscoveryHandler instance that is used to handle discovery events (e.g. found a printer, errors, discovery finished).
Exceptions
ExceptionCondition
DiscoveryExceptionIf an error occurs while starting the discovery (errors during discovery will be sent via DiscoveryError(String).
Remarks
This is a convenience method that can be used as an alternative to the other discovery methods (e.g. multicast).

This method will invoke the FoundPrinter(DiscoveredPrinter) method for each printer that is found during discovery. DiscoveryFinished will be invoked when the discovery is finished and DiscoveryError(String) will be invoked when any errors are encountered during discovery. When DiscoveryError(String) is invoked, the discovery will be cancelled and DiscoveryFinished will not be invoked.

If a printer responds to the discovery request more than once, the FoundPrinter(DiscoveredPrinter) method will only be invoked on the first occurrence.
See Also