Share via


PosKeyboardBase.EventTypes Property (POS for .NET v1.12 SDK Documentation)

2/27/2008

Holds the type of events that the application wants to receive.

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

Syntax

'Declaration
Public Overrides Property EventTypes As KeyboardEventType
public override KeyboardEventType EventTypes { get; set; }
public:
virtual property KeyboardEventType EventTypes {
    KeyboardEventType get () override;
    void set (KeyboardEventType value) override;
}
/** @property */
public KeyboardEventType get_EventTypes ()

/** @property */
public void set_EventTypes (KeyboardEventType value)
public override function get EventTypes () : KeyboardEventType

public override function set EventTypes (value : KeyboardEventType)

Remarks

The PosKeyboardBase class verifies that the keyboard device has been opened, then retrieves the value of PosKeyboardProperties.EventTypes.

The PosKeyboardProperties class initializes PosKeyboardProperties.EventTypes to KeyboardEventType.Down. It should then be updated by the service object based on the ability to generate key-up-based events. Accessing EventTypes may throw a PosControlException with the following errorcode:

Value

Meaning

Illegal

EventTypes was set to KeyboardEventType.DownUp but the CapKeyUp property is set to false, indicating that key-up strokes aren’t captured.

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

PosKeyboardBase Class
PosKeyboardBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
PosKeyboard.EventTypes Property
PosKeyboard.CapKeyUp Property
KeyboardEventType Enumeration