Click or drag to resize

ConnectionBuilderBuild Method

Creates a Connection type based on the contents of descriptionString.

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

Parameters

descriptionString
Type: SystemString
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

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