Click or drag to resize
IDocumentQueryTQuery, TObjectInCategory Method
Ensures that only documents assigned to specified category are retrieved (including all categories on path).

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntax
C#
TQuery InCategory(
	string categoryName,
	bool global = false,
	bool onlyEnabled = true
)

Parameters

categoryName
Type: SystemString
Document category name
global (Optional)
Type: SystemBoolean
Indicates if global category should be used
onlyEnabled (Optional)
Type: SystemBoolean
Indicates if only enabled categories should be taken in account

Return Value

Type: TQuery
See Also