Click or drag to resize
ContactInfoExtensionsIsInAllContactGroups Method
Indicates whether contact is present in all of the specified contact groups on contact's site.

Namespace: CMS.ContactManagement
Assembly: CMS.ContactManagement (in CMS.ContactManagement.dll) Version: 13.0.131
Syntax
C#
public static bool IsInAllContactGroups(
	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: Boolean
True if contact is present in all 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
ExceptionCondition
ArgumentNullExceptionThrown when contact is null.
Remarks
The method returns false when no contact group name is provided.
See Also