Table of Contents

Class CommentNotification.OnBeforeRenderCommentArgs

Namespace
Dynamicweb.Notifications
Assembly
Dynamicweb.dll

Provides information about the comment

public class CommentNotification.OnBeforeRenderCommentArgs : NotificationArgs
Inheritance
CommentNotification.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

Properties

Comment

Gets or sets the comment.

public required Comment Comment { get; set; }

Property Value

Comment

The comment.

Template

Gets or sets the template.

public required Template Template { get; set; }

Property Value

Template

The template.

To top