ContentTransformationFunctions.IsInCategories Method |
Returns true if document is in one/all of selected categories.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax public static bool IsInCategories(
Object document,
string categories,
bool allCategories
)
Parameters
- document
- Type: System.Object
Document to check - categories
- Type: System.String
Category names separated with a semicolon - allCategories
- Type: System.Boolean
If true, document must be in all of the selected categories.
Return Value
Type:
BooleanSee Also