Table of Contents

Class Ecommerce.Group.BeforeSaveArgs

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll

Provides information about group before group is going to be saved.

public class Ecommerce.Group.BeforeSaveArgs : NotificationArgs
Inheritance
Ecommerce.Group.BeforeSaveArgs
Inherited Members

Examples

using Dynamicweb.Extensibility.Notifications;

namespace Dynamicweb.Ecommerce.Examples.Notifications;

[Subscribe(Ecommerce.Notifications.Ecommerce.Group.BeforeSave)]
public class EcomGroupBeforeSaveObserver : NotificationSubscriber
{
    public override void OnNotify(string notification, NotificationArgs args)
    {
        if (args is not Ecommerce.Notifications.Ecommerce.Group.BeforeSaveArgs beforeSaveArgs)        
            return;        

        // Add code here
    }
}

Remarks

The passed NotificationArgs is Ecommerce.Group.BeforeSaveArgs

Constructors

BeforeSaveArgs(Group)

Initializes a new instance of the Ecommerce.Group.BeforeSaveArgs class.

public BeforeSaveArgs(Group group)

Parameters

group Group

The group.

Properties

Group

Gets the group.

public Group Group { get; }

Property Value

Group

The group.

StopExecution

Gets or sets a value indicating whether to stop the save process. If true then the save process is interrupted.

public bool StopExecution { get; set; }

Property Value

bool

true if save process should be interrupted; otherwise, false.

See Also

To top