Method GetCategories
GetCategories()
Returns the categories in this catalog in an array.
Declaration
public CategoryDefinition[] GetCategories()
Returns
Type | Description |
---|---|
CategoryDefinition[] | The categories in this catalog in an array. |
GetCategories(List<CategoryDefinition>)
Fills the given list with all categories found in this catalog. Note: this returns the current state of categories. To ensure that there are no invalid or duplicate entries, the 'categories' list will always be cleared and 'recycled' (i.e. updated) with current data from the catalog.
Declaration
public void GetCategories(List<CategoryDefinition> categories)
Parameters
Type | Name | Description |
---|---|---|
List<CategoryDefinition> | categories | The list to clear and fill with all categories. |