Method FindItemsByDefinition
FindItemsByDefinition(InventoryItemDefinition, ICollection<InventoryItem>)
Gets items filtered with the specified definition
.
Declaration
public static int FindItemsByDefinition(InventoryItemDefinition definition, ICollection<InventoryItem> target)
Parameters
Type | Name | Description |
---|---|---|
Inventory |
definition | The Inventory |
ICollection<Inventory |
target | The target collection where filtered items are copied |
Returns
Type | Description |
---|---|
int | The number of filtered items. |
FindItemsByDefinition(InventoryItemDefinition)
Gets items filtered with the specified definition
.
Declaration
public static InventoryItem[] FindItemsByDefinition(InventoryItemDefinition definition)
Parameters
Type | Name | Description |
---|---|---|
Inventory |
definition | The Inventory |
Returns
Type | Description |
---|---|
Inventory |
The filtered items. |
FindItemsByDefinition(string, ICollection<InventoryItem>)
Get all items created from the definition with the specified key
.
Declaration
public static int FindItemsByDefinition(string key, ICollection<InventoryItem> target)
Parameters
Type | Name | Description |
---|---|---|
string | key | The identifier of the Inventory |
ICollection<Inventory |
target | The target collection where filtered items are copied |
Returns
Type | Description |
---|---|
int | The number of filtered items. |
FindItemsByDefinition(string)
Get all items created from the definition with the specified key
.
Declaration
public static InventoryItem[] FindItemsByDefinition(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key | The identifier of the Inventory |
Returns
Type | Description |
---|---|
Inventory |
The filtered items. |