Class CommentNotification.CommentArgs
- Namespace
- Dynamicweb.Notifications
- Assembly
- Dynamicweb.dll
Generic notification argument for comments
public class CommentNotification.CommentArgs : NotificationArgs
- Inheritance
-
CommentNotification.CommentArgs
- Inherited Members
Examples
using Dynamicweb.Extensibility.Notifications;
using Dynamicweb.Notifications;
namespace Dynamicweb.Examples.Notifications
{
[Subscribe(CommentNotification.OnBeforeSave)]
public class OnBeforeSaveObserver : NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
var commentArgs = args as CommentNotification.CommentArgs;
//Add code here
}
}
}
Remarks
Arguments passed to: Dynamicweb.Notifications.CommentNotification.OnBeforeSave notification, Dynamicweb.Notifications.CommentNotification.OnAfterSave notification, Dynamicweb.Notifications.CommentNotification.OnBeforeComment notification, Dynamicweb.Notifications.CommentNotification.OnAfterComment notification
Properties
Comment
Gets or sets the comment.
public Comment Comment { get; set; }
Property Value
- Comment
The comment.