Click or drag to resize

CommentNotificationOnBeforeRenderCommentsArgs Class

Provides information about the comments
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.NotificationsCommentNotificationOnBeforeRenderCommentsArgs

Namespace:  Dynamicweb.Notifications
Assembly:  Dynamicweb (in Dynamicweb.dll) Version: 9.10.0
Syntax
public class OnBeforeRenderCommentsArgs : NotificationArgs

The CommentNotificationOnBeforeRenderCommentsArgs type exposes the following members.

Constructors
  NameDescription
Public methodCommentNotificationOnBeforeRenderCommentsArgs
Initializes a new instance of the CommentNotificationOnBeforeRenderCommentsArgs class
Top
Properties
  NameDescription
Public propertyComments
Gets or sets the comments.
Public propertyTemplate
Gets or sets the template.
Top
Remarks
Examples
C#
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
        }
    }
}
See Also