Method FindItemsByDefinition
FindItemsByDefinition(InventoryItemDefinition, ICollection<InventoryItem>)
Gets items filtered with the specified definition
.
Declaration
public static int FindItemsByDefinition(InventoryItemDefinition definition, ICollection<InventoryItem> target = null)
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>)
Gets items filtered with the specified definition
.
Declaration
public static int FindItemsByDefinition(string definitionId, ICollection<InventoryItem> target = null)
Parameters
Type | Name | Description |
---|---|---|
string | definitionId | The id 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)
Gets items filtered with the specified definition
.
Declaration
public static InventoryItem[] FindItemsByDefinition(string definitionId)
Parameters
Type | Name | Description |
---|---|---|
string | definitionId | The id of the Inventory |
Returns
Type | Description |
---|---|
Inventory |
The filtered items. |