CashChanger.ReadCashCounts Method (POS for .NET v1.12 SDK Documentation)

2/27/2008

Reads the current cash counts.

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

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 the CapDiscrepancy property is false, then Discrepancy is always false.

Usually, the cash total calculated by the CashCounts structure is equal to the cash total in a cash changer. However, there are some cases in which a discrepancy can occur because of existing uncountable cash in a cash changer. For example, when a cash slot is "overflowing," in such a way that the device has lost its ability to accurately detect and monitor the cash.

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

Value

Meaning

Busy

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

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

CashChanger Class
CashChanger Members
Microsoft.PointOfService Namespace
CashCounts
CashChanger.DispenseCash Method
CapDiscrepancy
CurrencyCashList