Table of Contents

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

Properties

Comment

Gets or sets the comment.
public Comment Comment { get; set; }

Property Value

Comment
The comment.
To top