Constructs an SGD DO command and sends it to the printer. This method waits for a maximum of GetMaxTimeoutForRead() milliseconds for any data to be received. Once some data has been received it waits until no more data is available within GetTimeToWaitForMoreData() milliseconds. This method returns the SGD value associated with setting without the surrounding quotes.

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

Syntax

C#
public static string DO(
	string setting,
	string value,
	ZebraPrinterConnection printerConnection
)
Visual Basic (Declaration)
Public Shared Function DO ( _
	setting As String, _
	value As String, _
	printerConnection As ZebraPrinterConnection _
) As String

Parameters

setting
Type: System..::.String
The SGD setting.
value
Type: System..::.String
The setting's value.
printerConnection
Type: ZSDK_API.Comm..::.ZebraPrinterConnection
The connection to send the command to.

Return Value

The response from the SGD DO command.

Exceptions

ExceptionCondition
ZSDK_API.ApiException..::.ZebraPrinterConnectionExceptionIf an I/O error occurs.
ZSDK_API.ApiException..::.ZebraGeneralExceptionIf there is an issue writing to the printer.

See Also