OnlineMarketingTransformationFunctionsIsInRoles Method |
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.OnlineMarketingAssembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 8.2.23
Syntax public static bool IsInRoles(
Object contact,
string roleNames,
bool allRoles
)
Parameters
- contact
- Type: SystemObject
Contact which should be checked - roleNames
- Type: SystemString
Name of the roles separated with semicolon - allRoles
- Type: SystemBoolean
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:
BooleanSee Also