Click or drag to resize
CategoryInfoProviderGetDocumentCategories Method (Int32, String, String, Int32, String)
Returns all categories the document is a member of.

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

Parameters

documentId
Type: SystemInt32
ID of the document categories are related to.
where (Optional)
Type: SystemString
Where condition to filter returned categories.
orderBy (Optional)
Type: SystemString
Order by expression to sort the returned categories.
topN (Optional)
Type: SystemInt32
Select top n records
columns (Optional)
Type: SystemString
List of columns to select

Return Value

Type: InfoDataSetCategoryInfo
See Also