Table of Contents

Class Standard.Paragraph.ParagraphNotificationArgs

Namespace
Dynamicweb.Notifications
Assembly
Dynamicweb.dll

Provides information about the single paragraph.

public class Standard.Paragraph.ParagraphNotificationArgs : NotificationArgs
Inheritance
Standard.Paragraph.ParagraphNotificationArgs
Inherited Members

Examples

using Dynamicweb.Extensibility.Notifications;

namespace Dynamicweb.Examples.Notifications.Standard;

[Subscribe(Dynamicweb.Notifications.Standard.Paragraph.Deleted)]
public class ParagraphDeletedObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args == null)
            return;

        var item = (Dynamicweb.Notifications.Standard.Paragraph.ParagraphNotificationArgs)args;

        //Pass paragraph Id to the notification e-mail
        string emailBody = $"The paragraph (ID:{item.Target.ID}) has been deleted.";
    }
}

Remarks

Constructors

ParagraphNotificationArgs(Paragraph)

Initializes a new instance of an object.

public ParagraphNotificationArgs(Paragraph target)

Parameters

target Paragraph

Target paragraph.

Properties

Target

Gets the target paragraph.

public Paragraph Target { get; }

Property Value

Paragraph
To top