Share via


Keylock.KeyPosition Property

2/27/2008

Holds a value that indicates the Keylock's current position.

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

Syntax

'Declaration
Public MustOverride ReadOnly Property KeyPosition As Integer
public abstract int KeyPosition { get; }
public:
virtual property int KeyPosition {
    int get () abstract;
}
/** @property */
public abstract int get_KeyPosition ()
public abstract function get KeyPosition () : int

Remarks

This value is set whenever the keylock position is changed. In addition to the application receiving the StatusUpdateEvent, this value is changed to reflect the new keylock position.

KeyPosition can hold one of the following values:

Value

Meaning

PositionAny

Keylock is in one of the auxiliary positions. This value can range from four up to the total number of keylock positions indicated by the PositionCount property.

PositionLocked

Keylock is in the “locked” position.

PositionNormal

Keylock is in the “normal” position.

PositionSupervisor

Keylock is in the “supervisor” position.

KeyPosition is updated by the service object while the device is enabled. If CapKeylockType is Electronic this property is meaningless and holds a value of 0.

This property is initialized and kept current while the device is enabled.

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

Keylock Class
Keylock Members
Microsoft.PointOfService Namespace
CapKeylockType
PositionCount