Click or drag to resize
ISubscriptionServiceIsSubscribed Method (ContactInfo, NewsletterInfo)
Returns true if given contact is subscribed to given and at the same time is not in the unsubscription list for the given newsletter.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 10.0.0
Syntax
C#
bool IsSubscribed(
	ContactInfo contact,
	NewsletterInfo newsletter
)

Parameters

contact
Type: CMS.ContactManagementContactInfo
Contact.
newsletter
Type: CMS.NewslettersNewsletterInfo
Newsletter which the contact is about to subscribe to.

Return Value

Type: Boolean
True if contact is not unsubscribed
Exceptions
ExceptionCondition
ArgumentNullExceptioncontact or newsletter is null.
See Also