Click or drag to resize

EcommerceGroupGroupRelationModifiedEventArgs Class

Provides data for the "RelationUpdated" and "RelationDeleted" notifications.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceGroupGroupRelationModifiedEventArgs

Namespace:  Dynamicweb.Ecommerce.Notifications
Assembly:  Dynamicweb.Ecommerce (in Dynamicweb.Ecommerce.dll) Version: 1.10.0
Syntax
public class GroupRelationModifiedEventArgs : NotificationArgs

The EcommerceGroupGroupRelationModifiedEventArgs type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyChildId
Gets an Id of the child group.
Public propertyOldChildId
Gets an original Id of the child group.
Public propertyOldParentId
Gets an original Id of the parent group.
Public propertyParentId
Gets an Id of the parent group.
Top
Remarks
The passed NotificationArgs is EcommerceGroupGroupRelationModifiedEventArgs
Examples
C#
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
        }
    }
}
See Also