Table of Contents

Class CommentNotification.OnBeforeRenderCommentsArgs

Namespace
Dynamicweb.Notifications
Assembly
Dynamicweb.dll
Provides information about the comments
public class CommentNotification.OnBeforeRenderCommentsArgs : NotificationArgs
Inheritance
CommentNotification.OnBeforeRenderCommentsArgs
Inherited Members

Examples

using Dynamicweb.Extensibility.Notifications;
using Dynamicweb.Notifications;

namespace Dynamicweb.Examples.Notifications
{
    [Subscribe(CommentNotification.OnBeforeRenderComments)]
    public class OnBeforeRenderCommentsObserver : NotificationSubscriber
    {
        public override void OnNotify(string notification, NotificationArgs args)
        {
            var onBeforeRenderCommentsArgs = args as CommentNotification.OnBeforeRenderCommentsArgs;

            //Add code here
        }
    }
}

Remarks

Properties

Comments

Gets or sets the comments.
public CommentCollection Comments { get; set; }

Property Value

CommentCollection
The comment.

Template

Gets or sets the template.
public Template Template { get; set; }

Property Value

Template
The template.
To top