ISubscriptionServiceRemoveSubscription Method |
Unsubscribe the subscriber from the newsletter.
Removes the binding from newsletter subscriber table.
Namespace: CMS.NewslettersAssembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 10.0.0
Syntax void RemoveSubscription(
int subscriberID,
int newsletterID,
bool sendConfirmationEmail = true
)
Parameters
- subscriberID
- Type: SystemInt32
Subscriber ID - newsletterID
- Type: SystemInt32
Newsletter ID - sendConfirmationEmail (Optional)
- Type: SystemBoolean
Indicates whether to send confirmation email or not
Exceptions Exception | Condition |
---|
ArgumentException | Newsletter or subscriber does not exist or subscription does not exist. |
See Also