Click or drag to resize

CommentingOnBeforeRenderCommentsArgs Class

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

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

The CommentingOnBeforeRenderCommentsArgs type exposes the following members.

Constructors
  NameDescription
Public methodCommentingOnBeforeRenderCommentsArgs
Initializes a new instance of the CommentingOnBeforeRenderCommentsArgs 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