Click or drag to resize

SettingsValuesSetValues Method

Set each of the settings in settingValues on a printer.

Namespace:  Zebra.Sdk.Settings
Assembly:  SdkApi_Core (in SdkApi_Core.dll) Version: 2.14.1869
Syntax
public Dictionary<string, string> SetValues(
	Dictionary<string, string> settingValues,
	Connection printerConnection,
	PrinterLanguage printerLanguage,
	LinkOsInformation version
)

Parameters

settingValues
Type: System.Collections.GenericDictionaryString, String
Map from setting names to desired values.
printerConnection
Type: Zebra.Sdk.CommConnection
A connection to the printer.
printerLanguage
Type: Zebra.Sdk.PrinterPrinterLanguage
The printer control language for the connection.
version
Type: Zebra.Sdk.PrinterLinkOsInformation
The LinkOS version information.

Return Value

Type: DictionaryString, String
A map from setting name to value.
Exceptions
ExceptionCondition
ConnectionExceptionIf it was not possible to communicate with the printer.
ZebraIllegalArgumentException
Remarks
Use either JSON or SGD set commands to set the values on the printer, depending on the connection type and the printer language.The default timeout values from the connection will be used when communicating with the printer.If printerConnection is a MultichannelConnection, prefer the status channel.
See Also