支持读取和写入印表机设置。 更多...
Public 成员函数 | |
SettingsReadWrite (IComm connection) | |
必须传递一个已打开的 comm 连接,该连接可以保持打开状态以监听未请求的印表机讯息。 更多... | |
SettingsReadWrite (string commDescriptor) | |
当创建由 SDK 管理的连接时调用的构造函数。 更多... | |
void | Dispose () |
Dictionary< string, Setting > | GetAllProperties () |
继承自 ISettingsReadWrite.GetAllProperties。 | |
Dictionary< string, string > | GetAllValues () |
继承自 ISettingsReadWrite.GetAllValues。 | |
Dictionary< string, Setting > | GetProperties (List< string > keys) |
继承自 ISettingsReadWrite.GetProperties。 | |
Setting | GetProperties (string key) |
继承自 ISettingsReadWrite.GetProperties。 | |
string | GetValue (string key) |
继承自 ISettingsReadWrite.GetValue。 | |
Dictionary< string, string > | GetValues (List< string > keys) |
继承自 ISettingsReadWrite.GetValues。 | |
bool | SetValue (string keyToSet, string valueToSet) |
继承自 ISettingsReadWrite.SetValue。 | |
bool | SetValues (Dictionary< string, string > keysToSet) |
继承自 ISettingsReadWrite.SetValues。 | |
Protected 成员函数 | |
virtual void | Dispose (bool disposing) |
支持读取和写入印表机设置。
For list of valid keys and values refer to: Settings Key/Value Items
UniPRT.Sdk.Settings.SettingsReadWrite.SettingsReadWrite | ( | IComm | connection | ) |
必须传递一个已打开的 comm 连接,该连接可以保持打开状态以监听未请求的印表机讯息。
必须有连接才能发送/接收印表机状态讯息。
UniPRT.Sdk.Settings.SettingsReadWrite.SettingsReadWrite | ( | string | commDescriptor | ) |
当创建由 SDK 管理的连接时调用的构造函数。
commDescriptor 是用于与印表机连接的通信描述符。
TCP 描述符格式:"ip" 或 "ip:port"
例如:"127.0.0.1" 或 "127.0.0.1:3007"
如果未提供端口,则使用默认值。