Click or drag to resize
MostActiveContactSelectorSelectContact Method
Returns most active contact from the given collection.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 9.0.0
Syntax
C#
public ContactInfo SelectContact(
	IList<ContactInfo> contacts,
	SiteInfo site
)

Parameters

contacts
Type: System.Collections.GenericIListContactInfo
Collection of contact to be select form
site
Type: CMS.SiteProviderSiteInfo
Current site context

Return Value

Type: ContactInfo
Most active contact from the given collection
Exceptions
ExceptionCondition
ArgumentNullExceptioncontacts is null
See Also