Click or drag to resize

StandardParagraphParagraphModuleNotificationArgs Class

Provides information about the module which has been attached to/detached from the paragraph.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.NotificationsStandardParagraphParagraphModuleNotificationArgs

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

The StandardParagraphParagraphModuleNotificationArgs type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyModuleSystemName
Gets the module system name which has been attached/detached.
Public propertyTarget
Gets the target paragraph.
Top
Remarks
Examples
C#
using Dynamicweb.Extensibility.Notifications;

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

            if (!(args is Dynamicweb.Notifications.Standard.Paragraph.ParagraphModuleNotificationArgs))
                return;

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

            //Pass attached module name to the notification e-mail
            var emailBody = string.Format("The module ({0}) has been attached.", item.ModuleSystemName);
        }
    }
}
See Also