Method FindItemsByCategory
FindItemsByCategory(Category, ICollection<InventoryItem>)
Gets items filtered with the specified category.
Declaration
public static int FindItemsByCategory(Category category, ICollection<InventoryItem> target = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Category | category | The category used to filter the items. |
| ICollection<InventoryItem> | target | The target collection where filtered items are copied |
Returns
| Type | Description |
|---|---|
| int | The number of items copied |
FindItemsByCategory(Category)
Gets items filtered with the specified category.
Declaration
public static InventoryItem[] FindItemsByCategory(Category category)
Parameters
| Type | Name | Description |
|---|---|---|
| Category | category | The category used to filter the items. |
Returns
| Type | Description |
|---|---|
| InventoryItem[] | The filtered items. |
FindItemsByCategory(string, ICollection<InventoryItem>)
Gets items filtered with the specified category.
Declaration
public static int FindItemsByCategory(string categoryId, ICollection<InventoryItem> target = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | categoryId | The inventory id used to filter the items. |
| ICollection<InventoryItem> | target | The target collection where filtered items are copied |
Returns
| Type | Description |
|---|---|
| int | The number of items copied |
FindItemsByCategory(string)
Gets items filtered with the specified category.
Declaration
public static InventoryItem[] FindItemsByCategory(string categoryId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | categoryId | The inventory id used to filter the items. |
Returns
| Type | Description |
|---|---|
| InventoryItem[] | The filtered items. |