This method will search the network using a combination of discovery methods to find printers on the network. 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 DiscoveryHandler.FoundPrinter(DiscoveredPrinter) method for each printer that is found during discovery. DiscoveryHandler.DiscoveryFinished() will be invoked when the discovery is finished and DiscoveryHandler.DiscoveryError(String) will be invoked when any errors are encountered during discovery. When DiscoveryHandler.DiscoveryError(String) is invoked, the discovery will be canceled and DiscoveryHandler.DiscoveryFinished() will not be invoked. If a printer responds to the discovery request more than once, the DiscoveryHandler.FoundPrinter(DiscoveredPrinter) method will only be invoked on the first occurrence.

Namespace:  ZSDK_API.Discovery
Assembly:  ZSDK_API (in ZSDK_API.dll) Version: 1.1.123.0

Syntax

C#
public static void FindPrinters(
	DiscoveryHandler discoveryHandler
)
Visual Basic (Declaration)
Public Shared Sub FindPrinters ( _
	discoveryHandler As DiscoveryHandler _
)

Parameters

discoveryHandler
Type: ZSDK_API.Discovery..::.DiscoveryHandler
a DiscoveryHandler instance that is used to handle discovery events (e.g. found a printer, errors, discovery finished).

Exceptions

ExceptionCondition
ZSDK_API.ApiException..::.DiscoveryExceptionIf there are issues during discovery.
ZSDK_API.ApiException..::.ZebraGeneralExceptionIf an I/O error occurs.

See Also