UsbConnection Constructor (String, Int32, Int32)
|
Initializes a new instance of the UsbConnection class.
Namespace:
Zebra.Sdk.Comm
Assembly:
SdkApi_Desktop (in SdkApi_Desktop.dll) Version: 2.13.898
Syntax public UsbConnection(
string symbolicName,
int maxTimeoutForRead,
int timeToWaitForMoreData
)
Public Sub New (
symbolicName As String,
maxTimeoutForRead As Integer,
timeToWaitForMoreData As Integer
)
public:
UsbConnection(
String^ symbolicName,
int maxTimeoutForRead,
int timeToWaitForMoreData
)
Parameters
- symbolicName
- Type: SystemString
The USB symbolic name for the device returned by the UsbDiscoverer.GetZebraUsbPrinters() member function. - maxTimeoutForRead
- Type: SystemInt32
Maximum time to wait for read data - timeToWaitForMoreData
- Type: SystemInt32
Maximum time to wait for more data after intial data is sent from printer
Exceptions Exception | Condition |
---|
ConnectionException | If the system is not running the Windows operating system or if the device cannot be found. |
Remarks This constructor will attempt a connection to the printer specified in the symbolic name.
See Also