Share via


CashDrawer.OpenDrawer Method (POS for .NET v1.12 SDK Documentation)

2/27/2008

Physically opens the cash drawer.

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

Syntax

'Declaration
Public MustOverride Sub OpenDrawer
public abstract void OpenDrawer ()
public:
virtual void OpenDrawer () abstract
public abstract void OpenDrawer ()
public abstract function OpenDrawer ()

Remarks

If the drawer opens successfully and the cash drawer supports status reporting (that is, the CapStatus property is set to true), the service object sets the DrawerOpened property to true. StatisticDrawerGoodOpenCount should also be incremented.

If the drawer does not open, StatisticDrawerFailedOpenCount should be incremented.

OpenDrawer may cause a PosControlException to be thrown with the following ErrorCodes.

Value

Meaning

Claimed

The cash drawer is currently claimed by another application.

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

CashDrawer Class
CashDrawer Members
Microsoft.PointOfService Namespace
CashDrawer.StatisticDrawerGoodOpenCount Field
CashDrawer.StatisticDrawerFailedOpenCount Field
CapStatus