Sends a discovery packet to the IPs specified in the subnetRange.
Subnet searches are defined by the first three subnet octets, followed by a range, such as 192.168.2.*
This method accepts IP addresses of the form, assuming a subnet of 192.168.2:
Namespace:
ZSDK_API.DiscoverySubnet searches are defined by the first three subnet octets, followed by a range, such as 192.168.2.*
This method accepts IP addresses of the form, assuming a subnet of 192.168.2:
- 192.168.2.254 (will send a discovery packet to 192.168.2.254)
- 192.168.2.* (will send a discovery packet for the range 192.168.2.1 - 192.168.2.254)
- 192.168.2.8-* (will send a discovery packet for the range 192.168.2.8 - 192.168.2.254)
- 192.168.2.37-42 (will send a discovery packet for the range 192.168.2.37 - 192.168.2.42)
Assembly: ZSDK_API (in ZSDK_API.dll) Version: 1.1.123.0
Syntax
C# |
---|
public static DiscoveredPrinter[] SubnetSearch( string subnetRange ) |
Visual Basic (Declaration) |
---|
Public Shared Function SubnetSearch ( _ subnetRange As String _ ) As DiscoveredPrinter() |
Parameters
- subnetRange
- Type: System..::.String
The subnet search range.
Return Value
An array of DiscoveredPrinters.Exceptions
Exception | Condition |
---|---|
ZSDK_API.ApiException..::.DiscoveryException | If there are issues during discovery. |
ZSDK_API.ApiException..::.ZebraGeneralException | If an I/O error occurs. |