Class Ecommerce.Product.AfterDeleteArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about product after deleting it.
- Inheritance
-
Ecommerce.
Product. After Delete Args
- 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.
Constructors
AfterDeleteArgs(Product)
Initializes a new instance of the Ecommerce.
Parameters
product
ProductThe product.
AfterDeleteArgs(ProductCollection)
Initializes a new instance of the Ecommerce.
Parameters
products
ProductCollection The products.
AfterDeleteArgs(string, string, string)
Initializes a new instance of the Ecommerce.
Parameters
productId
stringThe product Id.
productVariantId
stringThe product variant Id.
productLanguageId
stringThe product language Id.
Properties
ExecutingContext
Gets the executing context.
Property Value
- Ecommerce.Product.Executing
Context The executing context.
IsCleanUp
Gets a value indicating whether all additional information pertaining to the product was deleted.
Property Value
- bool
true
if all information was deleted; otherwise,false
.
Product
Gets the product. Will return null is ExecutingContext is not SingleProduct.
Property Value
- Product
The product.
ProductCollection
Gets the product collection. Will return null if ExecutingContext is not ProductCollection.
Property Value
- Product
Collection The product collection.
ProductId
Gets the product Id. Will return null if ExecutingContext is not SingleProduct.
Property Value
- string
The product identifier.
ProductLanguageId
Gets the product language Id. Will return null if ExecutingContext is not SingleProduct.
Property Value
- string
The product language identifier.
ProductVariantId
Gets the product variant Id. Will return null if ExecutingContext is not SingleProduct.
Property Value
- string
The product variant identifier.