Writes data.Length bytes from the specified byte array to the connection. 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
)
Visual Basic (Declaration)
Sub Write ( _
	data As Byte() _
)

Parameters

data
Type: array< System..::.Byte >[]()[]
The data.

Exceptions

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

See Also