Table of Contents

Class Ecommerce.Group.BeforeDeleteArgs

Namespace
Dynamicweb.Ecommerce.Notifications
Assembly
Dynamicweb.Ecommerce.dll

Provides information about group after group which is going to be deleted.

public class Ecommerce.Group.BeforeDeleteArgs : NotificationArgs
Inheritance
Ecommerce.Group.BeforeDeleteArgs
Inherited Members

Examples

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
          }
      }
  }

Remarks

The passed NotificationArgs is Ecommerce.Group.BeforeDeleteArgs

Constructors

BeforeDeleteArgs(Group, string, string, GroupCollection)

Initializes a new instance of the Ecommerce.Group.BeforeDeleteArgs class.

public BeforeDeleteArgs(Group group, string id, string languageId, GroupCollection groups)

Parameters

group Group

The group.

id string

The id.

languageId string

The language Id.

groups GroupCollection

The groups.

Properties

AllRelationsDeleted

Gets a value indicating whether all relations for the group(s) are deleted.

public bool AllRelationsDeleted { get; set; }

Property Value

bool

true if all relations are deleted; otherwise, false.

ExecutingContext

Gets the executing context.

public Ecommerce.Group.ExecutingContext ExecutingContext { get; set; }

Property Value

Ecommerce.Group.ExecutingContext

The executing context.

Group

Gets the group. Will return null if ExecutingContext is not SingleGroup.

public Group Group { get; }

Property Value

Group

The group.

GroupCollection

Gets the group collection. Will return null if ExecutingContext is not GroupCollection.

public GroupCollection GroupCollection { get; }

Property Value

GroupCollection

The group collection.

GroupId

Gets the group Id. Will return null if ExecutingContext is not SingleGroup.

public string GroupId { get; }

Property Value

string

The group identifier.

GroupLanguageId

Gets the group language Id. Will return null if ExecutingContext is not SingleGroup.

public string GroupLanguageId { get; }

Property Value

string

The group language identifier.

StopExecution

Gets or sets a value indicating whether to stop the save process. If true then the save process is interrupted.

public bool StopExecution { get; set; }

Property Value

bool

true if save process should be interrupted; otherwise, false.

See Also

To top