Click or drag to resize

EcommerceGroupAfterSaveArgs Class

Provides information about group after group was saved.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceGroupAfterSaveArgs

Namespace:  Dynamicweb.Ecommerce.Notifications
Assembly:  Dynamicweb.Ecommerce (in Dynamicweb.Ecommerce.dll) Version: 1.10.0
Syntax
public class AfterSaveArgs : NotificationArgs

The EcommerceGroupAfterSaveArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceGroupAfterSaveArgs
Initializes a new instance of the EcommerceGroupAfterSaveArgs class.
Top
Properties
  NameDescription
Public propertyGroup
Gets the group.
Public propertyGroupBeforeChanges
Gets previous state of the group.
Top
Remarks
The passed NotificationArgs is EcommerceGroupAfterSaveArgs
Examples
C#
using Dynamicweb;

namespace Dynamicweb.Ecommerce.Examples.Notifications
{
    [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.AfterSave)]
    public class EcomGroupAfterSaveObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
        {
            Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.AfterSaveArgs afterSaveArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.AfterSaveArgs;
            //Add code here
        }
    }
}
See Also