Share via


CashDrawer Class

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

Usage

'Usage
Dim cashDrawer1 As New CashDrawer()

Syntax

'Declaration
MustInherit Public Class CashDrawer
    Inherits PosCommon
public abstract class CashDrawer : PosCommon
public abstract ref class CashDrawer : public PosCommon
public abstract class CashDrawer extends PosCommon
public abstract class CashDrawer extends PosCommon

Remarks

The cash drawer device supports a command to “open” the cash drawer.

The cash drawer may have the following additional capabilities:

  • Drawer status reporting: Can determine whether a particular drawer is open or closed in environments where the drawer is the only drawer accessible via a hardware port.

  • Drawer unique status reporting: Can determine whether a particular drawer is open or closed in environments where more than one drawer is accessible via the same hardware port.

The cash drawer is a sharable device. Its device sharing rules are:

  • After opening and enabling the device, the application may access all properties and methods and will receive status update events.

  • If more than one application has opened and enabled the device, all applications may access its properties and methods. Status update events are fired to all of the applications.

  • If one application claims the cash drawer, then only that application may call the OpenDrawer and WaitForDrawerClose methods. This feature provides a degree of security, because these methods may effectively be restricted to the main application if that application claims the device at startup.

Inheritance Hierarchy

System.Object
   Microsoft.PointOfService.PosDevice
     Microsoft.PointOfService.PosCommon
      Microsoft.PointOfService.CashDrawer
         Microsoft.PointOfService.BasicServiceObjects.CashDrawerBasic

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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

CashDrawer Members
Microsoft.PointOfService Namespace