Click or drag to resize
CategoryInfoProviderGetChildCategories Method
Returns a query for all subcategories for specified site matching the specified parameters.

Namespace: CMS.Taxonomy
Assembly: CMS.Taxonomy (in CMS.Taxonomy.dll) Version: 9.0.0
Syntax
C#
public static ObjectQuery<CategoryInfo> GetChildCategories(
	int categoryId,
	string where = null,
	string orderBy = null,
	int topN = 0,
	string columns = null,
	int siteId = 0
)

Parameters

categoryId
Type: SystemInt32
ID of the category to get child categories for.
where (Optional)
Type: SystemString
Where condition.
orderBy (Optional)
Type: SystemString
Order by expression.
topN (Optional)
Type: SystemInt32
Number of records to be selected.
columns (Optional)
Type: SystemString
Columns to be selected.
siteId (Optional)
Type: SystemInt32
Site ID.

Return Value

Type: ObjectQueryCategoryInfo
See Also