Click or drag to resize

StandardParagraphParagraphNotificationArgs Class

Provides information about the single paragraph.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.NotificationsStandardParagraphParagraphNotificationArgs

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

The StandardParagraphParagraphNotificationArgs type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyTarget
Gets the target paragraph.
Top
Remarks
Examples
C#
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);
        }
    }
}
See Also