Class Commenting.OnBeforeRenderCommentArgs
- Namespace
- Dynamicweb.Notifications
- Assembly
- Dynamicweb.dll
Provides information about the comment
public class Commenting.OnBeforeRenderCommentArgs : NotificationArgs
- Inheritance
-
Commenting.OnBeforeRenderCommentArgs
- Inherited Members
Examples
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
}
}
}
Remarks
Arguments passed to Dynamicweb.Notifications.Commenting.OnBeforeRenderComment notification
Properties
Comment
Gets or sets the comment.
public Comment Comment { get; set; }
Property Value
- Comment
- The comment.
Template
Gets or sets the template.
public Template Template { get; set; }
Property Value
- Template
- The template.