DriverPrinterConnection(String, Int32, Int32) Constructor
|
Initializes a new instance of the DriverPrinterConnection class.
Namespace: Zebra.Sdk.CommAssembly: SdkApi.Desktop (in SdkApi.Desktop.dll) Version: 3.0.3271
Syntax public DriverPrinterConnection(
string printerName,
int maxTimeoutForRead,
int timeToWaitForMoreData
)
Public Sub New (
printerName As String,
maxTimeoutForRead As Integer,
timeToWaitForMoreData As Integer
)
public:
DriverPrinterConnection(
String^ printerName,
int maxTimeoutForRead,
int timeToWaitForMoreData
)
Parameters
- printerName String
- The printer name.
- maxTimeoutForRead Int32
- The maximum milliseconds to wait for the initial data to be received.
- timeToWaitForMoreData Int32
- The maximum milliseconds to wait for additional data to be received.
Exceptions Remarks
This constructor will use the specified timeouts for
Read.
The timeout is a maximum of maxTimeoutForRead milliseconds for any data to be received.
If no more data is available after timeToWaitForMoreData milliseconds the read operation
is assumed to be complete.
See Also