Class Ecommerce.Group.DeletedArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides information about product group when it has been deleted.
public class Ecommerce.Group.DeletedArgs : NotificationArgs
- Inheritance
-
Ecommerce.Group.DeletedArgs
- Inherited Members
Examples
using Dynamicweb.Extensibility.Notifications;
namespace Dynamicweb.Ecommerce.Examples.Notifications;
[Subscribe(Ecommerce.Notifications.Ecommerce.Group.Deleted)]
public class EcomGroupDeletedObserver : NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
if (args is not Ecommerce.Notifications.Ecommerce.Group.DeletedArgs deletedArgs)
return;
// Add code here
}
}
Remarks
The passed NotificationArgs is Ecommerce.Group.DeletedArgs
Constructors
DeletedArgs(Group, string, string, GroupCollection)
Initializes a new instance of the Ecommerce.Group.BeforeDeleteArgs class.
public DeletedArgs(Group group, string id, string languageId, GroupCollection groups)
Parameters
groupGroupThe group.
idstringThe id.
languageIdstringThe language Id.
groupsGroupCollectionThe groups.
Properties
AllRelationsDeleted
Gets a value indicating whether all relations for the group(s) are deleted.
public bool AllRelationsDeleted { get; set; }
Property Value
- bool
trueif all relations are deleted; otherwise,false.
ExecutingContext
Gets the executing context.
public Ecommerce.Group.ExecutingContext ExecutingContext { get; set; }
Property Value
- Ecommerce.Group.ExecutingContext
The executing context.
Group
Gets the group. Will return null if ExecutingContext is not SingleGroup.
public Group Group { get; }
Property Value
- Group
The group.
GroupCollection
Gets the group collection. Will return null if ExecutingContext is not GroupCollection.
public GroupCollection GroupCollection { get; }
Property Value
- GroupCollection
The group collection.
GroupId
Gets the group Id. Will return null if ExecutingContext is not SingleGroup.
public string GroupId { get; }
Property Value
- string
The group identifier.
GroupLanguageId
Gets the group language Id. Will return null if ExecutingContext is not SingleGroup.
public string GroupLanguageId { get; }
Property Value
- string
The group language identifier.