Constructs an SGD SET command and sends it to the printer. This method will not wait for a response from the printer. If the SGD SET command returns a response, the caller is responsible for reading the response. If a response is expected, use SGD.DO(String, String, ZebraPrinterConnection) command.

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

Syntax

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

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.

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