OnlineMarketingTransformationFunctions IsInRoles Method Kentico 8.0 API Reference
Returns true if the contact is in any/all of the specified roles (i.e. if any of the user assigned to the contact is in any/all specified roles).

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

contact
Type: OnlineSystem Object
Contact which should be checked
roleNames
Type: OnlineSystem String
Name of the roles separated with semicolon
allRoles
Type: OnlineSystem Boolean
If true, contact has to in all specified roles. If false, it is sufficient if the contact is at least in one of the roles.

Return Value

Type: OnlineBoolean
See Also