DeviceInfo 类(POS for .NET v1.14 SDK 文档)

DeviceInfo 类提供 Microsoft Point of Service for .NET (POS for .NET) 应用程序,其中包含有关 POS 设备以及与之关联的服务对象的信息。 PosExplorer 方法 GetDevice(String, String)GetDevices() 返回 DeviceInfo 的实例。

DeviceInfo 属性

下表显示了 DeviceInfo 属性。

属性 类型​​ 说明
兼容性 DeviceCompatibilities 列出 POS 设备的有效兼容性级别(OLE for Retail POS (OPOS) 或 .NET 服务对象)。
说明 字符串 描述服务对象。
HardwareDescription 字符串 描述物理设备。
HardwareId 字符串 提供物理设备的 ID。
HardwarePath 字符串 提供设备的物理硬件路径。
IsDefault bool 如果设备是其类型的默认值,则返回 true。
LogicalNames strings[] 提供由 POS 设备管理器 (POSDM) 在全局配置文件中分配给设备的备用名称。
ManufacturerName 字符串 提供物理设备制造商名称。
ServiceObjectName 字符串 提供服务对象的名称。
ServiceObjectVersion 版本 提供服务对象版本。
DeviceType 字符串 提供物理设备类型。
UposVersion 版本 提供 UPOS 版本号。

DeviceInfo 方法

下表显示了 DeviceInfo 方法。

方法 返回类型 说明
IsDeviceInfoOf bool 如果服务对象对应于 DeviceInfo 类属性,则返回 true。
ToString 字符串 返回描述设备属性的字符串。

另请参阅

概念

其他资源