BlogPostSubscriptionInfoProviderApproveSubscription Method |
Approves existing subscription - sets SubscriptionApproved to true.
Checks if subscription wasn't already approved. Confirmation e-mail may be sent optionally.
Namespace: CMS.BlogsAssembly: CMS.Blogs (in CMS.Blogs.dll) Version: 12.0.0
Syntax public static OptInApprovalResultEnum ApproveSubscription(
BlogPostSubscriptionInfo bpsi,
string subscriptionHash,
bool sendConfirmationEmail,
string siteName,
DateTime datetime
)
Parameters
- bpsi
- Type: CMS.BlogsBlogPostSubscriptionInfo
Blog post subscription - 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 blog settings requires so - siteName
- Type: SystemString
Site name. - datetime
- Type: SystemDateTime
Date and time of request.
Return Value
Type:
OptInApprovalResultEnumReturns TRUE if subscription found and not already approved. Returns FALSE if subscription not found or already approved.
See Also