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 |
---|---|---|
InventoryItemDefinition | definition | The InventoryItemDefinition used to filter the items |
ICollection<InventoryItem> | 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 |
---|---|---|
InventoryItemDefinition | definition | The InventoryItemDefinition used to filter the items |
Returns
Type | Description |
---|---|
InventoryItem[] | 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 InventoryItemDefinition used to filter the items |
ICollection<InventoryItem> | 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 InventoryItemDefinition used to filter the items |
Returns
Type | Description |
---|---|
InventoryItem[] | The filtered items. |