Click or drag to resize
ContactInfoProviderGetMostActive Method
Returns contact from given set of ContactIDs which has most activities.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 9.0.0
Syntax
C#
public static int GetMostActive(
	IList<int> contactIds
)

Parameters

contactIds
Type: System.Collections.GenericIListInt32
List of Contact IDs

Return Value

Type: Int32
ID of contact with most activities
Exceptions
ExceptionCondition
ArgumentNullExceptioncontactIds is null
ArgumentExceptioncontactIds cannot be empty
Remarks
Returns first ID from contactIds list when no activities are found for specified contacts.
See Also