Click or drag to resize

CommentingCommentArgs Class

Generic notification argument for comments
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.NotificationsCommentingCommentArgs

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

The CommentingCommentArgs type exposes the following members.

Constructors
  NameDescription
Public methodCommentingCommentArgs
Initializes a new instance of the CommentingCommentArgs class
Top
Properties
  NameDescription
Public propertyComment
Gets or sets the comment.
Top
Remarks
Examples
C#
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
        }
    }
}
See Also