CoinDispenser.AdjustCashCounts Method

2/27/2008

Sets initial amounts in the Coin Dispenser after initial setup or adjusts cash counts after replenishment or removal.

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

Syntax

'Declaration
Public Overridable Sub AdjustCashCounts ( _
    cashCounts As IEnumerable(Of CashCount) _
)
public virtual void AdjustCashCounts (
    IEnumerable<CashCount> cashCounts
)
public:
virtual void AdjustCashCounts (
    IEnumerable<CashCount>^ cashCounts
)
public void AdjustCashCounts (
    IEnumerable<CashCount> cashCounts
)
public function AdjustCashCounts (
    cashCounts : IEnumerable<CashCount>
)

Parameters

  • cashCounts
    Contains cash types and amounts to be initialized.

Remarks

This method is called to set the initial amounts in the Coin Dispenser after initial setup, or to adjust cash counts after replenishment or removal, such as a paid-in or paid-out operation.

This method is called when it is necessary for devices which cannot determine the exact amount of cash in them automatically. If the device can determine the exact amount, then this method call is ignored.

The application would first call ReadCashCounts to get the current counts, and adjust them to the amount being replenished. Then the application calls this method to set the amount currently in the dispenser.

To reset all cash counts to 0 (zero), set each denomination amount to 0 (zero).

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

CoinDispenser Class
CoinDispenser Members
Microsoft.PointOfService Namespace
CashChanger.ReadCashCounts Method
CashCounts Structure