Click or drag to resize
IUnsubscriptionProviderGetUnsubscriptionsFromSingleNewsletter Method
Returns query of all unsubscribed email addresses that won't receive given newsletter. Is affected by UseSiteSpecificUnsubscriptions.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 9.0.0
Syntax
C#
ObjectQuery<UnsubscriptionInfo> GetUnsubscriptionsFromSingleNewsletter(
	int newsletterID,
	int siteID
)

Parameters

newsletterID
Type: SystemInt32
Newsletter ID
siteID
Type: SystemInt32
Site ID

Return Value

Type: ObjectQueryUnsubscriptionInfo
Remarks
When UseSiteSpecificUnsubscriptions is true, this method returns emails that are unsubscribed from newsletterID and emails that are unsubscribed from all newsletters on siteID. When UseSiteSpecificUnsubscriptions is false, this method returns emails that are unsubscribed from newsletterID and emails that are unsubscribed from all newsletters on any site.
See Also