Click or drag to resize
NewsletterHelperGetNewsletterMarketableRecipientsCount Method
Returns number of recipients subscribed for specified newsletter. Takes unsubscription table in account.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 10.0.0
Syntax
C#
public static int GetNewsletterMarketableRecipientsCount(
	NewsletterInfo newsletter
)

Parameters

newsletter
Type: CMS.NewslettersNewsletterInfo
Newsletter.

Return Value

Type: Int32
Exceptions
ExceptionCondition
ArgumentNullExceptionIs thrown when parameter newsletter is null.
ArgumentExceptionIs thrown when parameter newsletter is not type of Newsletter.
Remarks
The method counts recipients only for newsletters.
See Also