| ContactInfoExtensionsIsInContactGroup Method | 
            Indicates whether contact is present in contact group on contact's site.
            
 
Namespace: CMS.ContactManagementAssembly: CMS.ContactManagement (in CMS.ContactManagement.dll) Version: 13.0.131
 Syntax
Syntaxpublic static bool IsInContactGroup(
	this ContactInfo contact,
	string contactGroupName
)
Parameters
- contact
- Type: CMS.ContactManagementContactInfo
 Contact whose presence in contact group is checked.
- contactGroupName
- Type: SystemString
 Name of contact group.
Return Value
Type: 
BooleanTrue if contact is present in the specified group. 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
Exceptions| Exception | Condition | 
|---|
| ArgumentNullException | Thrown when contact is null. | 
| ArgumentException | Thrown when contactGroupName is null or empty string. | 
 See Also
See Also