Class ContactGroupMemberInfoProviderExtensions
- Namespace
- CMS.ContactManagement
- Assembly
- CMS.ContactManagement.dll
Contains extension methods for ContactGroupMemberInfo's IInfoProvider<TInfo>.
public static class ContactGroupMemberInfoProviderExtensions
- Inheritance
-
objectContactGroupMemberInfoProviderExtensions
Methods
Add(IInfoProvider<ContactGroupMemberInfo>, int, int, ContactGroupMemberTypeEnum, MemberAddedHowEnum)
Creates ContactGroupMemberInfo binding.
public static void Add(this IInfoProvider<ContactGroupMemberInfo> infoProvider, int contactGroupId, int relatedObjectId, ContactGroupMemberTypeEnum memberType, MemberAddedHowEnum addedHow)
Parameters
infoProvider
IInfoProvider<ContactGroupMemberInfo>ContactGroupMemberInfo provider to use to create the info object.
contactGroupId
intContact group ID.
relatedObjectId
intRelated object ID.
memberType
ContactGroupMemberTypeEnumMember type.
addedHow
MemberAddedHowEnumPossible types of contact addition into contact group.
Exceptions
- ArgumentNullException
Thrown when
infoProvider
is null.
GetContactsByContactGroup(IInfoProvider<ContactGroupMemberInfo>, int)
Gets contact group members of type Contact in the specified contact group.
public static ObjectQuery<ContactGroupMemberInfo> GetContactsByContactGroup(this IInfoProvider<ContactGroupMemberInfo> infoProvider, int contactGroupId)
Parameters
infoProvider
IInfoProvider<ContactGroupMemberInfo>Contact group member info provider.
contactGroupId
intContact group ID.
Returns
Exceptions
- ArgumentNullException
Thrown when
infoProvider
is null.
GetContactsInContactGroupCount(IInfoProvider<ContactGroupMemberInfo>, int)
Gets the number of contact group members of type Contact in the specified contact group.
public static int GetContactsInContactGroupCount(this IInfoProvider<ContactGroupMemberInfo> infoProvider, int contactGroupId)
Parameters
infoProvider
IInfoProvider<ContactGroupMemberInfo>Contact group member info provider.
contactGroupId
intContact group ID.
Returns
- int
Exceptions
- ArgumentNullException
Thrown when
infoProvider
is null.