SGDDO(String, String, Connection, Int32, Int32) Method
|
Constructs an SGD DO command and sends it to the printer.
Namespace: Zebra.Sdk.PrinterAssembly: SdkApi.Core (in SdkApi.Core.dll) Version: 3.0.3271
Syntax public static string DO(
string setting,
string value,
Connection printerConnection,
int maxTimeoutForRead,
int timeToWaitForMoreData
)
Public Shared Function DO (
setting As String,
value As String,
printerConnection As Connection,
maxTimeoutForRead As Integer,
timeToWaitForMoreData As Integer
) As String
public:
static String^ DO(
String^ setting,
String^ value,
Connection^ printerConnection,
int maxTimeoutForRead,
int timeToWaitForMoreData
)
Parameters
- setting String
- the SGD setting
- value String
- the setting's value
- printerConnection Connection
- the connection to send the command to
- maxTimeoutForRead Int32
- the maximum time, in milliseconds, to wait for a response from the printer
- timeToWaitForMoreData Int32
- the maximum time, in milliseconds, to wait in-between reads after the initial data is received
Return Value
StringThe response from the SGD DO command
Exceptions Remarks
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.
See Also