Click or drag to resize

StandardParagraphOnBeforeRenderArgs Class

Provides information about the paragraph before render.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.NotificationsStandardParagraphOnBeforeRenderArgs

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

The StandardParagraphOnBeforeRenderArgs type exposes the following members.

Constructors
  NameDescription
Public methodStandardParagraphOnBeforeRenderArgs
Initializes a new instance of the StandardParagraphOnBeforeRenderArgs class
Top
Properties
  NameDescription
Public propertyParagraphViewModel
Gets or sets the paragraph view model.
Top
Remarks
Examples
C#
using Dynamicweb.Extensibility.Notifications;

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

            var item = (Dynamicweb.Notifications.Standard.Paragraph.OnBeforeRenderArgs) args;
        }
    }
}
See Also