Method GetCategories
GetCategories()
Returns an array of all the CategoryAsset instances linked to this CatalogItemAsset instance. catalog.
Declaration
public CategoryAsset[] GetCategories()
Returns
| Type | Description |
|---|---|
| CategoryAsset[] | An array of all the categories linked to this CatalogItemAsset instance. |
Remarks
Keep in mind that this method allocates an array. If you want to avoid allocations, please consider using GetCategories(ICollection<CategoryAsset>) instead.
GetCategories(ICollection<CategoryAsset>)
Fills the given target collection with all the
CategoryAsset instances linked to this
CatalogItemAsset instance.
The target collection is cleared before being
populated.
Declaration
public int GetCategories(ICollection<CategoryAsset> target)
Parameters
| Type | Name | Description |
|---|---|---|
| ICollection<CategoryAsset> | target | The target container of all the CategoryAsset instances. |
Returns
| Type | Description |
|---|---|
| int | The number of CategoryAsset instances linked to this CatalogItemAsset instance. |