Click or drag to resize

CommentingOnBeforeRenderCommentArgs Class

Provides information about the comment
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.NotificationsCommentingOnBeforeRenderCommentArgs

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

The CommentingOnBeforeRenderCommentArgs type exposes the following members.

Constructors
  NameDescription
Public methodCommentingOnBeforeRenderCommentArgs
Initializes a new instance of the CommentingOnBeforeRenderCommentArgs class
Top
Properties
  NameDescription
Public propertyComment
Gets or sets the comment.
Public propertyTemplate
Gets or sets the template.
Top
Remarks
Examples
C#
using Dynamicweb.Extensibility.Notifications;
using Dynamicweb.Notifications;

namespace Dynamicweb.Examples.Notifications
{
    [Subscribe(CommentNotification.OnBeforeRenderComment)]
    public class OnBeforeRenderCommentObserver : NotificationSubscriber
    {
        public override void OnNotify(string notification, NotificationArgs args)
        {
           var onBeforeRenderCommentArgs = args as CommentNotification.OnBeforeRenderCommentArgs;

            //Add code here
        }
    }
}
See Also