Keylock Class
2/27/2008
Defines the programmatic interface for a UPOS keylock device.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustInherit Class Keylock
Inherits PosCommon
public abstract class Keylock : PosCommon
public ref class Keylock abstract : public PosCommon
public abstract class Keylock extends PosCommon
public abstract class Keylock extends PosCommon
Remarks
Capabilities
All keylock devices have the following capabilities:
The Keylock supports at least three keylock positions.
The Keylock uses hardware or software detection to report of keylock position changes.
Model
The Keylock class defines three keylock positions, locked, normal, and supervisor, as constants. The constants representing these Keylock positions are listed below:
Constant |
Value |
0 |
|
1 |
|
2 |
|
3 |
The value representing the current keylock position is held in the KeyPosition property. Possible values range from one to the number of keylock positions contained within the PositionCount property
Device Sharing
The Keylock device is sharable. Its device-sharing rules are:
After opening and enabling the device, the application can access all properties and methods and will receive status update events.
If more than one application has opened and enabled the device, each of these applications can access its properties and methods. StatusUpdateEvent events are fired to all of these applications.
The Keylock cannot be claimed for exclusive access. If an application calls ClaimDevice, the method always returns Illegal.
Inheritance Hierarchy
System.Object
Microsoft.PointOfService.PosDevice
Microsoft.PointOfService.PosCommon
Microsoft.PointOfService.Keylock
Microsoft.PointOfService.BasicServiceObjects.KeylockBasic
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.