Table of Contents

Class Ecommerce.Group.GroupRelationModifiedEventArgs

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll
Provides data for the "RelationUpdated" and "RelationDeleted" notifications.
public class Ecommerce.Group.GroupRelationModifiedEventArgs : NotificationArgs
Inheritance
Ecommerce.Group.GroupRelationModifiedEventArgs
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

Constructors

GroupRelationModifiedEventArgs(string, string)

Initializes new instance of an object.
public GroupRelationModifiedEventArgs(string childId, string parentId)

Parameters

childId string
An Id of the child group.
parentId string
An Id of the parent group.
See Also

GroupRelationModifiedEventArgs(string, string, string, string)

Initializes new instance of an object.
public GroupRelationModifiedEventArgs(string childId, string parentId, string oldChildId, string oldParentId)

Parameters

childId string
An Id of the child group.
parentId string
An Id of the parent group.
oldChildId string
An original Id of the child group.
oldParentId string
An original Id of the parent group.
See Also

Properties

ChildId

Gets an Id of the child group.
public string ChildId { get; }

Property Value

string
The child identifier.
See Also

OldChildId

Gets an original Id of the child group.
public string OldChildId { get; }

Property Value

string
The old child identifier.
See Also

OldParentId

Gets an original Id of the parent group.
public string OldParentId { get; }

Property Value

string
The old parent identifier.
See Also

ParentId

Gets an Id of the parent group.
public string ParentId { get; }

Property Value

string
The parent identifier.
See Also

See Also

To top