![]() | EcommerceProductBeforeDeleteArgs Class |
Namespace: Dynamicweb.Ecommerce.Notifications
The EcommerceProductBeforeDeleteArgs type exposes the following members.
Name | Description | |
---|---|---|
![]() | EcommerceProductBeforeDeleteArgs(Product) |
Initializes a new instance of the EcommerceProductBeforeDeleteArgs class.
|
![]() | EcommerceProductBeforeDeleteArgs(ProductCollection) |
Initializes a new instance of the EcommerceProductBeforeDeleteArgs class.
|
![]() | EcommerceProductBeforeDeleteArgs(String, String, String) |
Initializes a new instance of the EcommerceProductBeforeDeleteArgs class.
|
Name | Description | |
---|---|---|
![]() | ExecutingContext |
Gets the executing context.
|
![]() | IsCleanUp |
Gets a value indicating whether all additional information pertaining to the product is deleted.
|
![]() | Product |
Gets the product. Will return null is ExecutingContext is not SingleProduct.
|
![]() | ProductCollection |
Gets the product collection. Will return null if ExecutingContext is not ProductCollection.
|
![]() | ProductId |
Gets the product Id. Will return null if ExecutingContext is not SingleProduct.
|
![]() | ProductLanguageId |
Gets the product language Id. Will return null if ExecutingContext is not SingleProduct.
|
![]() | ProductVariantId |
Gets the product variant Id. Will return null if ExecutingContext is not SingleProduct.
|
![]() | StopExecution |
Gets or sets a value indicating whether to stop the delete process. If true then the delete process is interrupted.
|
using Dynamicweb; namespace Dynamicweb.Ecommerce.Examples.Notifications { [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.BeforeDelete)] public class EcomProductBeforeDeleteObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber { public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args) { Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.BeforeDeleteArgs beforeDeleteArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.BeforeDeleteArgs; //Add code here } } }