Table of Contents

Class ContactGroupMemberInfoProviderExtensions

Namespace
CMS.ContactManagement
Assembly
CMS.ContactManagement.dll

Contains extension methods for ContactGroupMemberInfo's IInfoProvider<TInfo>.

public static class ContactGroupMemberInfoProviderExtensions
Inheritance
object
ContactGroupMemberInfoProviderExtensions

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 int

Contact group ID.

relatedObjectId int

Related object ID.

memberType ContactGroupMemberTypeEnum

Member type.

addedHow MemberAddedHowEnum

Possible 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 int

Contact group ID.

Returns

ObjectQuery<ContactGroupMemberInfo>

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 int

Contact group ID.

Returns

int

Exceptions

ArgumentNullException

Thrown when infoProvider is null.