Table of Contents

Class Ecommerce.Product.BeforeSaveArgs

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll

Proovides information about product before saving.

public class Ecommerce.Product.BeforeSaveArgs : NotificationArgs
Inheritance
Ecommerce.Product.BeforeSaveArgs
Inherited Members

Examples

using Dynamicweb;

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

              //Add code here
          }
      }
  }

Remarks

The passed NotificationArgs is Ecommerce.Product.BeforeSaveArgs

Constructors

BeforeSaveArgs(Product)

Initializes a new instance of the Ecommerce.Product.BeforeSaveArgs class.

public BeforeSaveArgs(Product product)

Parameters

product Product

The product.

Properties

Product

Gets the product.

public Product Product { get; }

Property Value

Product

The product.

StopExecution

Gets or sets a value indicating whether to stop the save process. If true then the save process is interrupted.

public bool StopExecution { get; set; }

Property Value

bool

true if save process should be interrupted; otherwise, false.

See Also

To top