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
            var emailBody = string.Format("The paragraph (ID:{0}) has been deleted.", item.Target.ID);
        }
    }
}

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