Click or drag to resize

EcommerceProductAfterDeleteArgs Class

Provides information about product after deleting it.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceProductAfterDeleteArgs

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

The EcommerceProductAfterDeleteArgs type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyExecutingContext
Gets the executing context.
Public propertyIsCleanUp
Gets a value indicating whether all additional information pertaining to the product was deleted.
Public propertyProduct
Gets the product. Will return null is ExecutingContext is not SingleProduct.
Public propertyProductCollection
Gets the product collection. Will return null if ExecutingContext is not ProductCollection.
Public propertyProductId
Gets the product Id. Will return null if ExecutingContext is not SingleProduct.
Public propertyProductLanguageId
Gets the product language Id. Will return null if ExecutingContext is not SingleProduct.
Public propertyProductVariantId
Gets the product variant Id. Will return null if ExecutingContext is not SingleProduct.
Top
Remarks
The passed NotificationArgs is EcommerceProductAfterDeleteArgs
Examples
C#
using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.AfterDelete)]
      public class EcomProductAfterDeleteObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.AfterDeleteArgs afterDeleteArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.AfterDeleteArgs;

              //Add code here
          }
      }
  }
See Also