Click or drag to resize
ContentTransformationFunctionsIsInCategories Method
Returns true if document is in one/all of selected categories.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
public static bool IsInCategories(
	Object document,
	string categories,
	bool allCategories
)

Parameters

document
Type: SystemObject
Document to check
categories
Type: SystemString
Category names separated with a semicolon
allCategories
Type: SystemBoolean
If true, document must be in all of the selected categories.

Return Value

Type: Boolean
See Also