Click or drag to resize

EcommerceOrderAfterDeleteArgs Class

Provides information about the order that was deleted.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceOrderAfterDeleteArgs

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

The EcommerceOrderAfterDeleteArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceOrderAfterDeleteArgs(String)
Initializes a new instance of the EcommerceOrderAfterDeleteArgs class.
Public methodEcommerceOrderAfterDeleteArgs(Order)
Initializes a new instance of the EcommerceOrderAfterDeleteArgs class.
Top
Properties
  NameDescription
Public propertyOrder
Gets the order.
Public propertyOrderId
Gets the order identifier.
Top
Remarks
The passed NotificationArgs is EcommerceOrderAfterDeleteArgs
Examples
C#
using Dynamicweb;

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

              //Add code here
          }
      }
  }
See Also