Click or drag to resize

EcommerceGroupBeforeSaveArgs Class

Provides information about group before group is going to be saved.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceGroupBeforeSaveArgs

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

The EcommerceGroupBeforeSaveArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceGroupBeforeSaveArgs
Initializes a new instance of the EcommerceGroupBeforeSaveArgs class.
Top
Properties
  NameDescription
Public propertyGroup
Gets the group.
Public propertyStopExecution
Gets or sets a value indicating whether to stop the save process. If true then the save process is interrupted.
Top
Remarks
The passed NotificationArgs is EcommerceGroupBeforeSaveArgs
Examples
C#
using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.BeforeSave)]
      public class EcomGroupBeforeSaveObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.BeforeSaveArgs beforeSaveArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.BeforeSaveArgs;

              //Add code here
          }
      }
  }
See Also