Click or drag to resize

EcommerceGroupDeletedArgs Class

Provides information about product group when it has been deleted.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceGroupDeletedArgs

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

The EcommerceGroupDeletedArgs type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAllRelationsDeleted
Gets a value indicating whether all relations for the group(s) are deleted.
Public propertyExecutingContext
Gets the executing context.
Public propertyGroup
Gets the group. Will return null if ExecutingContext is not SingleGroup.
Public propertyGroupCollection
Gets the group collection. Will return null if ExecutingContext is not GroupCollection.
Public propertyGroupId
Gets the group Id. Will return null if ExecutingContext is not SingleGroup.
Public propertyGroupLanguageId
Gets the group language Id. Will return null if ExecutingContext is not SingleGroup.
Top
Remarks
The passed NotificationArgs is EcommerceGroupDeletedArgs
Examples
C#
using Dynamicweb;

namespace Dynamicweb.Ecommerce.Examples.Notifications
{
    [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.Deleted)]
    public class EcomGroupDeletedObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
    {
        public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
      {
        Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.DeletedArgs deletedArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.DeletedArgs;
        //Add code here
      }
    }
}
See Also