Constructs an SGD GET command and sends it to the printer. This method waits for a maximum of maxTimeoutForRead milliseconds for any data to be received. Once some data has been received it waits until no more data is available within timeToWaitForMoreData 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,
	int maxTimeoutForRead,
	int timeToWaitForMoreData
)
Visual Basic (Declaration)
Public Shared Function GET ( _
	setting As String, _
	printerConnection As ZebraPrinterConnection, _
	maxTimeoutForRead As Integer, _
	timeToWaitForMoreData As Integer _
) As String

Parameters

setting
Type: System..::.String
The SGD setting.
printerConnection
Type: ZSDK_API.Comm..::.ZebraPrinterConnection
The connection to send the command to.
maxTimeoutForRead
Type: System..::.Int32
The maximum time, in milliseconds, to wait for a response from the printer.
timeToWaitForMoreData
Type: System..::.Int32
The maximum time, in milliseconds, to wait in between reads after the initial data is received.

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