Click or drag to resize
SubscriberInfoProviderGetSubscribers Method (SubscriberInfo, Int32, Int32, Int32)
Gets the list of subscriber's members. Subscriber member has SubscriberID=0.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 8.2.23
Syntax
C#
public static SortedDictionary<int, SubscriberInfo> GetSubscribers(
	SubscriberInfo subscriber,
	int topN = 0,
	int lastMemberID = 0,
	int newsletterID = 0
)

Parameters

subscriber
Type: CMS.NewslettersSubscriberInfo
Subscriber definition
topN (Optional)
Type: SystemInt32
Number of members that should be returned (all are returned if 0)
lastMemberID (Optional)
Type: SystemInt32
Last member ID (used for subscribed role or contact group)
newsletterID (Optional)
Type: SystemInt32
Newsletter ID - it allows to filter-out unsubscribed contact group members

Return Value

Type: SortedDictionaryInt32, SubscriberInfo
See Also