Class Commenting.CommentArgs
- Namespace
- Dynamicweb.Notifications
- Assembly
- Dynamicweb.dll
Generic notification argument for comments
public class Commenting.CommentArgs : NotificationArgs
- Inheritance
-
Commenting.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.Commenting.OnBeforeSave notification,
Dynamicweb.Notifications.Commenting.OnAfterSave notification,
Dynamicweb.Notifications.Commenting.OnBeforeComment notification,
Dynamicweb.Notifications.Commenting.OnAfterComment notification
Properties
Comment
Gets or sets the comment.
public Comment Comment { get; set; }
Property Value
- Comment
- The comment.