Click or drag to resize

Notifications Class

Provides notification names for "NewsV2" module.
Inheritance Hierarchy
SystemObject
  Dynamicweb.NewsNotifications

Namespace:  Dynamicweb.News
Assembly:  Dynamicweb.News (in Dynamicweb.News.dll) Version: 1.0.10
Syntax
public class Notifications

The Notifications type exposes the following members.

Constructors
  NameDescription
Public methodNotifications
Initializes a new instance of the Notifications class
Top
Fields
  NameDescription
Public fieldStatic memberCode exampleCategoryDeleted
Occurs after the news category has been deleted.
Public fieldStatic memberCode exampleCategorySaved
Occurs after the news category has been saved.
Public fieldStatic memberCode exampleItemDeleted
Occurs after the news item has been deleted.
Public fieldStatic memberCode exampleItemSaved
Occurs after the news item has been saved.
Public fieldStatic memberCode exampleItemSaving
Occurs before the news item has been saved.
Top
Remarks
Examples
How to subscribe to Events
C#
[Dynamicweb.Extensibility.Subscribe(Dynamicweb.Notifications.NewsV2.Frontend.BeforeLoad)]
 public class NewsV2BeforeLoadNotification : Dynamicweb.Extensibility.NotificationSubscriber
 {
    public override void OnNotify(string notification, object[] args)
    {
        Dynamicweb.NewsV2.Extensibility.NewsItemNotificationArgs arg = (Dynamicweb.NewsV2.Extensibility.NewsItemNotificationArgs)args[0];

        //Todo: insert your code here
    }
 }
See Also