Click or drag to resize

EcommerceProductAfterSaveArgs Class

Provides information about product after saving.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceProductAfterSaveArgs

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

The EcommerceProductAfterSaveArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceProductAfterSaveArgs
Initializes a new instance of the EcommerceProductAfterSaveArgs class.
Top
Properties
  NameDescription
Public propertyProduct
Gets the product.
Public propertyProductBeforeChanges
Gets previous state of the product.
Top
Remarks
The passed NotificationArgs is EcommerceProductAfterSaveArgs
Examples
C#
using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.AfterSave)]
      public class EcomProductAfterSaveObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.AfterSaveArgs afterSaveArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.AfterSaveArgs;

              //Add code here
          }
      }
  }
See Also