Class Ecommerce.Product.AfterSaveArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about product after saving.
public class Ecommerce.Product.AfterSaveArgs : NotificationArgs
- Inheritance
-
Ecommerce.Product.AfterSaveArgs
- Inherited Members
Examples
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
}
}
}
Remarks
The passed NotificationArgs is Ecommerce.Product.AfterSaveArgs
Constructors
AfterSaveArgs(Product)
Initializes a new instance of the Ecommerce.Product.AfterSaveArgs class.
public AfterSaveArgs(Product product)
Parameters
product
ProductThe product.
Properties
Product
Gets the product.
public Product Product { get; }
Property Value
- Product
The product.
ProductBeforeChanges
Gets previous state of the product.
public Product ProductBeforeChanges { get; set; }
Property Value
- Product
The product.