Table of Contents

Class Ecommerce.Product.AfterDeleteArgs

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

Provides information about product after deleting it.

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

Examples

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
          }
      }
  }

Remarks

The passed NotificationArgs is Ecommerce.Product.AfterDeleteArgs

Constructors

AfterDeleteArgs(Product)

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

public AfterDeleteArgs(Product product)

Parameters

product Product

The product.

AfterDeleteArgs(ProductCollection)

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

public AfterDeleteArgs(ProductCollection products)

Parameters

products ProductCollection

The products.

AfterDeleteArgs(string, string, string)

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

public AfterDeleteArgs(string productId, string productVariantId, string productLanguageId)

Parameters

productId string

The product Id.

productVariantId string

The product variant Id.

productLanguageId string

The product language Id.

Properties

ExecutingContext

Gets the executing context.

public Ecommerce.Product.ExecutingContext ExecutingContext { get; set; }

Property Value

Ecommerce.Product.ExecutingContext

The executing context.

IsCleanUp

Gets a value indicating whether all additional information pertaining to the product was deleted.

public bool IsCleanUp { get; set; }

Property Value

bool

true if all information was deleted; otherwise, false.

Product

Gets the product. Will return null is ExecutingContext is not SingleProduct.

public Product Product { get; }

Property Value

Product

The product.

ProductCollection

Gets the product collection. Will return null if ExecutingContext is not ProductCollection.

public ProductCollection ProductCollection { get; }

Property Value

ProductCollection

The product collection.

ProductId

Gets the product Id. Will return null if ExecutingContext is not SingleProduct.

public string ProductId { get; }

Property Value

string

The product identifier.

ProductLanguageId

Gets the product language Id. Will return null if ExecutingContext is not SingleProduct.

public string ProductLanguageId { get; }

Property Value

string

The product language identifier.

ProductVariantId

Gets the product variant Id. Will return null if ExecutingContext is not SingleProduct.

public string ProductVariantId { get; }

Property Value

string

The product variant identifier.

See Also

To top