Click or drag to resize
ISubscriptionServiceRemoveSubscription Method
Unsubscribe the subscriber from the newsletter. Removes the binding from newsletter subscriber table.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 12.0.0
Syntax
C#
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
ExceptionCondition
ArgumentExceptionNewsletter or subscriber does not exist or subscription does not exist.
See Also