![]() | StandardPagePageNotificationArgs Class |
Namespace: Dynamicweb.Notifications
The StandardPagePageNotificationArgs type exposes the following members.
Name | Description | |
---|---|---|
![]() | StandardPagePageNotificationArgs(Page) |
Initializes a new instance of an object.
|
![]() | StandardPagePageNotificationArgs(Page, Page) |
Initializes a new instance of an object.
|
Name | Description | |
---|---|---|
![]() | PageBeforeChanges |
Gets the instance of the page without the changes. For Saved and UrlWasAffected notification, this will represent the page and its properties before the editing that has taken place.
|
![]() | Target |
Gets the instance to a target page.
|
using Dynamicweb.Extensibility.Notifications; namespace Dynamicweb.Examples.Notifications.Standard { [Subscribe(Dynamicweb.Notifications.Standard.Page.Saved)] public class PageSavedObserver : NotificationSubscriber { public override void OnNotify(string notification, NotificationArgs args) { if (args == null) return; var pna = (Dynamicweb.Notifications.Standard.Page.PageNotificationArgs) args; //Pass page Id to the notification e-mail var emailBody = string.Format("The page (ID:{0}) has been saved.", pna.Target.ID); } } }