Click or drag to resize
ForumSubscriptionInfoProviderApproveSubscription Method
Approves existing subscription - sets SubscriptionApproved to true and SubscriptionApprovedWhen to current time. Checks if subscription wasn't already approved. Confirmation e-mail may be sent optionally.

Namespace: CMS.Forums
Assembly: CMS.Forums (in CMS.Forums.dll) Version: 11.0.0
Syntax
C#
public static OptInApprovalResultEnum ApproveSubscription(
	ForumSubscriptionInfo fsi,
	string subscriptionHash,
	bool sendConfirmationEmail,
	string siteName,
	DateTime datetime
)

Parameters

fsi
Type: CMS.ForumsForumSubscriptionInfo
Forum subscription object
subscriptionHash
Type: SystemString
Hash parameter representing specific subscription
sendConfirmationEmail
Type: SystemBoolean
Indicates if confirmation e-mail should be sent. Confirmation e-mail may also be sent if newsletter settings requires so
siteName
Type: SystemString
Site name.
datetime
Type: SystemDateTime
Date and time of request.

Return Value

Type: OptInApprovalResultEnum
Returns TRUE if subscription found and not already approved. Returns FALSE if subscription not found or already approved.
See Also