Writes length bytes from data starting at offset. The connection must be open before this method is called. If Write is called when a connection is closed, a ZebraPrinterConnectionException is thrown.

Namespace:  ZSDK_API.Comm
Assembly:  ZSDK_API (in ZSDK_API.dll) Version: 1.1.123.0

Syntax

C#
void Write(
	byte[] data,
	int offset,
	int length
)
Visual Basic (Declaration)
Sub Write ( _
	data As Byte(), _
	offset As Integer, _
	length As Integer _
)

Parameters

data
Type: array< System..::.Byte >[]()[]
The data.
offset
Type: System..::.Int32
The start offset in the data.
length
Type: System..::.Int32
Number of bytes to write.

Exceptions

ExceptionCondition
ZSDK_API.ApiException..::.ZebraPrinterConnectionExceptionIf an I/O error occurs.
ZSDK_API.ApiException..::.ZebraGeneralExceptionIf the write could not be performed.

See Also