Click or drag to resize

ConnectionBuilderBuild Method

Creates a Connection type based on the contents of descriptionString.

Namespace: Zebra.Sdk.Comm
Assemblies:  ZebraPrinterSdk (in ZebraPrinterSdk.dll) Version: 3.0.3271
  SdkApi.Desktop (in SdkApi.Desktop.dll) Version: 3.0.3271
Syntax
public static Connection Build(
	string descriptionString
)

Parameters

descriptionString  String
The format of the input string is: [prefix:] address [: port_number(s)].

  • Prefix is either TCP_MULTI, TCP, TCP_STATUS, BT_MULTI, BT, or BT_STATUS.
  • The format of address depends on the prefix
    • TCP : address is either a DNS name or an IPv4 address.
    • BT : address is the MAC address.
  • port_number(s) is optional, and only applicable for TCP connections.
  • Examples:
    • TCP:ZBR3054027:9100
    • TCP_MULTI:ZBR3054027:9100:9200
    • BT:11:22:33:44:55:66
    • 10.1.2.3

Return Value

Connection
Connection derived from the contents of descriptionString.
Exceptions
ExceptionCondition
ConnectionExceptionIf a connection could not be established for the given descriptionString.
Example
"TCP:192.168.1.2:9100"
See Also