Share via


ItemDispenser.AdjustItemCount Method

2/27/2008

Sets the number of items in the Item Dispenser.

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

Syntax

'Declaration
Public MustOverride Sub AdjustItemCount ( _
    itemCount As Integer, _
    slotNumber As Integer _
)
public abstract void AdjustItemCount (
    int itemCount,
    int slotNumber
)
public:
virtual void AdjustItemCount (
    int itemCount, 
    int slotNumber
) abstract
public abstract void AdjustItemCount (
    int itemCount, 
    int slotNumber
)
public abstract function AdjustItemCount (
    itemCount : int, 
    slotNumber : int
)

Parameters

  • itemCount
    Contains the number of items to be initialized.
  • slotNumber
    Contains the slot number to be initialized. Valid slot numbers are 1 through

Remarks

This method is called to set the number of items in the Item Dispenser after initial setup, or to adjust the item count after replenishment or removal. This method is called for devices which cannot determine the exact number of items in them automatically. If the device can determine the exact number of items, this method call is ignored. The application would first call the ReadItemCount method for the current item count, and adjust it to the amount being replenished. Then the application calls this method to set the number of items that are currently in the dispenser.

To reset the item count, set it to zero (0).

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

ItemDispenser Class
ItemDispenser Members
Microsoft.PointOfService Namespace