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 static Dynamicweb.Ecommerce.Notifications.Ecommerce.Order;
using Dynamicweb.Extensibility.Notifications;

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(BeforeDelete)]
public class EcomOrderBeforeDeleteObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not BeforeDeleteArgs beforeDeleteArgs)        
            return;

        // 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.

BeforeDeleteArgs(string)

Initializes a new instance of the Ecommerce.Order.BeforeDeleteArgs class.

public BeforeDeleteArgs(string orderId)

Parameters

orderId string

The order identifier.

Properties

Order

Gets the order.

public Order Order { get; }

Property Value

Order

The order.

OrderId

Gets the order identifier.

public string OrderId { get; }

Property Value

string

The order identifier.

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

To top