Class Ecommerce.Group.BeforeDeleteArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about group after group which is going to be deleted.
- Inheritance
-
Ecommerce.
Group. Before Delete Args
- Inherited Members
Examples
using Dynamicweb;
namespace Dynamicweb.Ecommerce.Examples.Notifications
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.BeforeDelete)]
public class EcomGroupBeforeDeleteObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.BeforeDeleteArgs beforeDeleteArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.BeforeDeleteArgs;
//Add code here
}
}
}
Remarks
The passed NotificationArgs is Ecommerce.
Constructors
BeforeDeleteArgs(Group, string, string, GroupCollection)
Initializes a new instance of the Ecommerce.
Parameters
group
GroupThe group.
id
stringThe id.
languageId
stringThe language Id.
groups
GroupCollection The groups.
Properties
AllRelationsDeleted
Gets a value indicating whether all relations for the group(s) are deleted.
Property Value
- bool
true
if all relations are deleted; otherwise,false
.
ExecutingContext
Gets the executing context.
Property Value
- Ecommerce.Group.Executing
Context The executing context.
Group
Gets the group. Will return null if ExecutingContext is not SingleGroup.
Property Value
- Group
The group.
GroupCollection
Gets the group collection. Will return null if ExecutingContext is not GroupCollection.
Property Value
- Group
Collection The group collection.
GroupId
Gets the group Id. Will return null if ExecutingContext is not SingleGroup.
Property Value
- string
The group identifier.
GroupLanguageId
Gets the group language Id. Will return null if ExecutingContext is not SingleGroup.
Property Value
- string
The group language identifier.
StopExecution
Gets or sets a value indicating whether to stop the save process. If true then the save process is interrupted.
Property Value
- bool
true
if save process should be interrupted; otherwise,false
.