SettingsValuesGetValues Method
|
Get the values for a list of settings from a printer.
Namespace:
Zebra.Sdk.Settings
Assembly:
SdkApi.Core (in SdkApi.Core.dll) Version: 2.15.2634
Syntax public Dictionary<string, string> GetValues(
List<string> settingNames,
Connection printerConnection,
PrinterLanguage printerLanguage,
LinkOsInformation version
)
Public Function GetValues (
settingNames As List(Of String),
printerConnection As Connection,
printerLanguage As PrinterLanguage,
version As LinkOsInformation
) As Dictionary(Of String, String)
public:
Dictionary<String^, String^>^ GetValues(
List<String^>^ settingNames,
Connection^ printerConnection,
PrinterLanguage^ printerLanguage,
LinkOsInformation^ version
)
Parameters
- settingNames
- Type: System.Collections.GenericListString
The settings to be retrieved. - 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,
StringA map from setting name to value.
Exceptions Remarks
Use either JSON or SGD get commands to request the values from 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