HardwareIdAttribute Class (POS for .NET v1.12 SDK Documentation)

2/27/2008

Defines a class containing a range of hardware Ids supported by a service object.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple:=True, Inherited:=False)> _
Public NotInheritable Class HardwareIdAttribute
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=true, Inherited=false)] 
public sealed class HardwareIdAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple=true, Inherited=false)] 
public ref class HardwareIdAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=true, Inherited=false) */ 
public final class HardwareIdAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=true, Inherited=false) 
public final class HardwareIdAttribute extends Attribute

Remarks

HardwareIdAttribute is used by the PosExplorer class to map the range of hardware IDs to a service object (for determining device path, and for Plug and Play support). A service object can implement more than one instance of HardwareIdAttribute class, to support more than one range of hardware Ids.

Implementation of HardwareIdAttribute class is optional. Alternatively, the information can be set via a ControlConfig XML file. Service objects can install an XML file under HKLM\Software\Microsoft\POSfor.NET\ControlConfigs, allowing a company to update hardware mappings without recompiling and shipping the service object (shipping just the XML file instead).

Inheritance Hierarchy

System.Object
   System.Attribute
    Microsoft.PointOfService.HardwareIdAttribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

HardwareIdAttribute Members
Microsoft.PointOfService Namespace