Click or drag to resize
SubscriberInfoProviderUnsubscribe Method (String, Boolean, String, DateTime)
Unsubscribes subscriber from newsletter.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 8.2.23
Syntax
C#
public static SubscriberInfoProviderApprovalResult Unsubscribe(
	string subscriptionHash,
	bool sendConfirmationEmail,
	string siteName,
	DateTime datetime
)

Parameters

subscriptionHash
Type: SystemString
Subscription hash.
sendConfirmationEmail
Type: SystemBoolean
Indicates whether send confirmation e-mail
siteName
Type: SystemString
Site name.
datetime
Type: SystemDateTime
Date and time of request

Return Value

Type: SubscriberInfoProviderApprovalResult
See Also