Share via


BillDispenser.ReadCashCounts Method

2/27/2008

Reads the current cash counts in the bill dispenser.

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

Syntax

'Declaration
Public MustOverride Function ReadCashCounts As CashCounts
public abstract CashCounts ReadCashCounts ()
public:
virtual CashCounts ReadCashCounts () abstract
public abstract CashCounts ReadCashCounts ()
public abstract function ReadCashCounts () : CashCounts

Return Value

A CashCounts structure representing the cash in the bill dispenser.

Remarks

The format of the CashCounts structure is the same as CashCounts in the DispenseCash method. Each unit in CashCounts matches a unit in the CurrencyCashList property, and is in the same order.

If CapDiscrepancy is false, Discrepancy is always false.

Usually, the cash total returned is equal to the cash total in the bill dispenser. There are some cases in which a discrepancy may occur because of existing uncountable cash in a bill dispenser. An example would be when a bill dispenser has diverted an unusable bill to a holding area.

ReadCashCounts can throw general exceptions, and PosControlExceptions with the following ErrorCode value,

Value

Meaning

Busy

Cash units and counts cannot be read because an asynchronous method is in progress.

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

BillDispenser Class
BillDispenser Members
Microsoft.PointOfService Namespace
CapDiscrepancy
CurrencyCashList
BillDispenser.DispenseCash Method