Constructs an SGD GET 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 GET(
	string setting,
	ZebraPrinterConnection printerConnection
)
Visual Basic (Declaration)
Public Shared Function GET ( _
	setting As String, _
	printerConnection As ZebraPrinterConnection _
) As String

Parameters

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

Return Value

The setting's value.

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