SGDDO Method (Stream, String, String, Connection, Int32, Int32)
|
Constructs an SGD DO command and sends it to the printer.
Namespace:
Zebra.Sdk.Printer
Assembly:
SdkApi_Core (in SdkApi_Core.dll) Version: 2.14.1989
Syntax public static void DO(
Stream responseData,
string setting,
string value,
Connection printerConnection,
int maxTimeoutForRead,
int timeToWaitForMoreData
)
Public Shared Sub DO (
responseData As Stream,
setting As String,
value As String,
printerConnection As Connection,
maxTimeoutForRead As Integer,
timeToWaitForMoreData As Integer
)
public:
static void DO(
Stream^ responseData,
String^ setting,
String^ value,
Connection^ printerConnection,
int maxTimeoutForRead,
int timeToWaitForMoreData
)
Parameters
- responseData
- Type: System.IOStream
output stream to receive the response. - setting
- Type: SystemString
the SGD setting - value
- Type: SystemString
the setting's value - printerConnection
- Type: Zebra.Sdk.CommConnection
the connection to send the command to - maxTimeoutForRead
- Type: SystemInt32
the maximum time, in milliseconds, to wait for a response from the printer - timeToWaitForMoreData
- Type: SystemInt32
the maximum time, in milliseconds, to wait in-between reads after the initial data is received
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 write the SGD
value associated with setting without the surrounding quotes.
See Also