The ZebraPrinterConnection type exposes the following members.

Methods

  NameDescription
BytesAvailable
Returns an estimate of the number of bytes that can be read from the connection without blocking.
Close
Closes the connection and releases any system resources associated with the connection. If the connection is already closed then invoking this method has no effect.
GetMaxTimeoutForRead
Returns the maximum time, in milliseconds, to wait for any data to be received.
GetTimeToWaitForMoreData
Returns the maximum time, in milliseconds, to wait in between reads after the initial read.
IsConnected
Returns true if the connection is open.
Open
Opens a connection to a device. If the Open method is called on an open connection this call is ignored. When a handle to the connection is no longer needed, call Close() to free up system resources.
Read
Reads all the available data from the connection. This call is non-blocking.
ToString
See the classes which implement this method for the format of the description string.
WaitForData
Causes the currently executing thread to sleep until BytesAvailable() > 0, or for a maximum of maxTimeout milliseconds.
WriteOverloaded.

See Also