Class Ecommerce.Group.GroupRelationModifiedEventArgs
- Namespace
- Dynamicweb.Ecommerce.Notifications
- Assembly
- Dynamicweb.Ecommerce.dll
Provides data for the "RelationUpdated" and "RelationDeleted" notifications.
- Inheritance
-
Ecommerce.
Group. Group Relation Modified Event Args
- Inherited Members
Examples
using Dynamicweb;
namespace Dynamicweb.Ecommerce.Examples.Notifications
{
[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.RelationUpdated)]
public class EcomGroupRelationUpdatedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
{
public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
{
if (args == null || !(args is Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.GroupRelationModifiedEventArgs))
return;
Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.GroupRelationModifiedEventArgs item = (Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.GroupRelationModifiedEventArgs)args;
//Add code here
}
}
}
Remarks
The passed NotificationArgs is Ecommerce.
Constructors
GroupRelationModifiedEventArgs(string, string)
Initializes new instance of an object.
Parameters
GroupRelationModifiedEventArgs(string, string, string, string)
Initializes new instance of an object.
public GroupRelationModifiedEventArgs(string childId, string parentId, string oldChildId, string oldParentId)
Parameters
childId
stringAn Id of the child group.
parentId
stringAn Id of the parent group.
oldChildId
stringAn original Id of the child group.
oldParentId
stringAn original Id of the parent group.
Properties
ChildId
Gets an Id of the child group.
Property Value
- string
The child identifier.
OldChildId
Gets an original Id of the child group.
Property Value
- string
The old child identifier.
OldParentId
Gets an original Id of the parent group.
Property Value
- string
The old parent identifier.
ParentId
Gets an Id of the parent group.
Property Value
- string
The parent identifier.