ContactInfoExtensionsIsInAnyContactGroup Method |
Indicates whether contact is present in any of the specified contact groups on contact's site.
Namespace: CMS.ContactManagementAssembly: CMS.ContactManagement (in CMS.ContactManagement.dll) Version: 10.0.0
Syntax public static bool IsInAnyContactGroup(
this ContactInfo contact,
params string[] contactGroupNames
)
Parameters
- contact
- Type: CMS.ContactManagementContactInfo
Contact whose presence in contact groups is checked. - contactGroupNames
- Type: SystemString
Names of contact groups.
Return Value
Type:
BooleanTrue if contact is present in any of the specified groups. Otherwise returns false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ContactInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Remarks
The method returns false when no contact group name is provided.
See Also