The PosDevice Class

The PosDevice Class

The PosDevice Class represents a single physical POS device. The class provides properties and methods that are needed to manage that physical device.

Properties

Type and Name Access Key Description
string Type Read X The POS device type or category. For example, Scanner, Printer, etc.
string SoName Read X The name of the service object for this physical device.
string Path Read X The hardware path of a Device. For Plug and Play devices, this path comes from the Plug and Play engine. For non-Plug and Play devices, it is provided via the AddDevice method of ServiceObject. For devices using legacy (OPOS) service objects, this may be blank.
string HardwareDescription Read   The device description, of the logical device, returned from the registry and used by the Plug and Play engine. This may be blank for devices using legacy (OPOS) service objects.
bool IsPlugNPlay Read   If TRUE, the device is a Plug and Play device.
bool IsLegacy Read   If TRUE, the device is using a legacy (OPOS) service object.

If FALSE, the device is using a POS for.NET service object.

bool Enabled Read/Write   If TRUE, enable the device.

If FALSE, disable the device.

bool Default Read/Write   If TRUE, the device is the default in a POS Device category.

Methods

Type and Name Description
void AddName(string Name) Adds a logical name for the device.

Name is the name of the logical device to add. The name must be unique within a device class (type).

Logical names are represented by the LogicalDevice class.

void DeleteName(string Name) Deletes the logical name from the device.

Name is the name of the logical device to delete.

Logical names are represented by the LogicalDevice class.

void AddProperty(string Name, string Value) Adds a property (a name/value pair) to this device.

Name is the name of the property.

Value is the value of the property.

Device properties are represented by the Property class.

void DeleteProperty(string Name) Deletes a property from this device.

Name is the name of the property to be deleted.

Device properties are represented by the Property class.

© 2005 Microsoft Corporation. All rights reserved.