Click or drag to resize

EcommerceOrderBeforeDeleteArgs Class

Provides information about the order that's going to be deleted.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceOrderBeforeDeleteArgs

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

The EcommerceOrderBeforeDeleteArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceOrderBeforeDeleteArgs(String)
Initializes a new instance of the EcommerceOrderBeforeDeleteArgs class.
Public methodEcommerceOrderBeforeDeleteArgs(Order)
Initializes a new instance of the EcommerceOrderBeforeDeleteArgs class.
Top
Properties
  NameDescription
Public propertyOrder
Gets the order.
Public propertyOrderId
Gets the order identifier.
Public propertyStopExecution
Gets or sets a value indicating whether [stop execution].
Top
Remarks
The passed NotificationArgs is EcommerceOrderBeforeDeleteArgs
Examples
C#
using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.BeforeDelete)]
      public class EcomOrderBeforeDeleteObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.BeforeDeleteArgs beforeDeleteArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Order.BeforeDeleteArgs;

              //Add code here
          }
      }
  }
See Also