Method AutoFillCostItemIds
AutoFillCostItemIds(ICollection<string>)
Gets a list of the first InventoryItem ids from the inventory that satisfy the cost of a transaction.
Declaration
public void AutoFillCostItemIds(ICollection<string> costItemIds)
Parameters
| Type | Name | Description |
|---|---|---|
| ICollection<string> | costItemIds | An existing collection of strings to populate (must be non-null and must be empty). |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown if the collection passed in is not empty. |
| NotEnoughItemOfDefinitionException | Thrown if the cost can't be met. (You should use VerifyCost before using this method.) |