Click or drag to resize

EcommerceGroupBeforeDeleteArgs Class

Provides information about group after group which is going to be deleted.
Inheritance Hierarchy
SystemObject
  Dynamicweb.Extensibility.NotificationsNotificationArgs
    Dynamicweb.Ecommerce.NotificationsEcommerceGroupBeforeDeleteArgs

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

The EcommerceGroupBeforeDeleteArgs type exposes the following members.

Constructors
  NameDescription
Public methodEcommerceGroupBeforeDeleteArgs
Initializes a new instance of the EcommerceGroupBeforeDeleteArgs class.
Top
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.
Public propertyStopExecution
Gets or sets a value indicating whether to stop the save process. If true then the save process is interrupted.
Top
Remarks
The passed NotificationArgs is EcommerceGroupBeforeDeleteArgs
Examples
C#
using Dynamicweb;

  namespace Dynamicweb.Ecommerce.Examples.Notifications
  {
      [Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.BeforeDelete)]
      public class EcomGroupBeforeDeleteObserver : Dynamicweb.Extensibility.Notifications.NotificationSubscriber
      {
          public override void OnNotify(string notification, Dynamicweb.Extensibility.Notifications.NotificationArgs args)
          {
              Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.BeforeDeleteArgs beforeDeleteArgs = args as Dynamicweb.Ecommerce.Notifications.Ecommerce.Group.BeforeDeleteArgs;

              //Add code here
          }
      }
  }
See Also