CashDrawer Class
2/27/2008
Defines the programmatic interface for a UPOS Cash Drawer device.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustInherit Class CashDrawer
Inherits PosCommon
public abstract class CashDrawer : PosCommon
public ref class CashDrawer abstract : public PosCommon
public abstract class CashDrawer extends PosCommon
public abstract class CashDrawer extends PosCommon
Remarks
The Cash Drawer device always 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 available through a hardware port.
Drawer unique status reporting: Can determine whether a particular drawer is open or closed in environments where more than one drawer can be accessed through the same hardware port.
The cash drawer is a shareable device. Its device sharing rules are as follows:
After you open and enabling the device, the application may access all properties and methods and receives 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 raised to all 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.