Table of Contents

Class Ecommerce.Order.BeforeDeleteArgs

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll
Provides information about the order that's going to be deleted.
public class Ecommerce.Order.BeforeDeleteArgs : NotificationArgs
Inheritance
Ecommerce.Order.BeforeDeleteArgs
Inherited Members

Examples

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

Remarks

The passed NotificationArgs is Ecommerce.Order.BeforeDeleteArgs

Constructors

BeforeDeleteArgs(Order)

Initializes a new instance of the Ecommerce.Order.BeforeDeleteArgs class.
public BeforeDeleteArgs(Order order)

Parameters

order Order
The order.
See Also

BeforeDeleteArgs(string)

Initializes a new instance of the Ecommerce.Order.BeforeDeleteArgs class.
public BeforeDeleteArgs(string orderId)

Parameters

orderId string
The order identifier.
See Also

Properties

Order

Gets the order.
public Order Order { get; }

Property Value

Order
The order.
See Also

OrderId

Gets the order identifier.
public string OrderId { get; }

Property Value

string
The order identifier.
See Also

StopExecution

Gets or sets a value indicating whether [stop execution].
public bool StopExecution { get; set; }

Property Value

bool
true if [stop execution]; otherwise, false.
See Also

See Also

To top