BillDispenser.AdjustCashCounts Method (POS for .NET v1.14 SDK Documentation)
3/2/2014
Sets or adjusts the cash count in the bill dispenser.
Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)
Syntax
'Declaration
Public MustOverride Sub AdjustCashCounts ( _
cashCounts As IEnumerable(Of CashCount) _
)
public abstract void AdjustCashCounts (
IEnumerable<CashCount> cashCounts
)
public:
virtual void AdjustCashCounts (
IEnumerable<CashCount>^ cashCounts
) abstract
public abstract void AdjustCashCounts (
IEnumerable<CashCount> cashCounts
)
public abstract function AdjustCashCounts (
cashCounts : IEnumerable<CashCount>
)
Parameters
- cashCounts
Indicates the cash types and amounts to be initialized.
Remarks
This method is called to set the initial amounts in the BillDispenser after initial setup, or to adjust cash counts after replenishment or removal, such as a paid-in or paid-out operation. This method may be called when needed for devices which cannot automatically detect the cash within them. If the device can automatically determine the exact amount, this method call is ignored.
In typical use, the application first calls ReadCashCounts for the current counts, and then adjusts them by the amounts replenished or removed. Then, the application calls AdjustCashCounts to set the amounts currently in the Bill Dispenser.
To reset all cash counts to zero, set each denomination amount to zero.
Invoking this method can cause general exceptions to be thrown and PosControlExceptions with the following ErrorCode value.
Value |
Meaning |
Busy |
Cash units and counts cannot be initialized 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
ReadCashCounts