Class NodeEventArgs
Implements operations for the node event arguments.
Inheritance
Inherited Members
Namespace: Mediachase.Commerce.Catalog.Events
Assembly: Mediachase.Commerce.dll
Version: 13.30.0Syntax
public class NodeEventArgs : CatalogSystemEventArgs
Constructors
NodeEventArgs(String, IEnumerable<NodeChange>, Boolean)
Initializes a new instance of the NodeEventArgs class.
Declaration
public NodeEventArgs(string eventName, IEnumerable<NodeChange> changes, bool hasChangedParent)
Parameters
Type | Name | Description |
---|---|---|
System.String | eventName | Name of the event. |
System.Collections.Generic.IEnumerable<NodeChange> | changes | Describes what changes are made to catalog nodes. |
System.Boolean | hasChangedParent |
|
NodeEventArgs(String, IEnumerable<NodeChange>, IEnumerable<String>)
Initializes a new instance of the NodeEventArgs class.
Declaration
[Obsolete("Use constructor without propertyNamesWithChanges instead. Will be removed in next major.")]
public NodeEventArgs(string eventName, IEnumerable<NodeChange> changes, IEnumerable<string> propertyNamesWithChanges)
Parameters
Type | Name | Description |
---|---|---|
System.String | eventName | Name of the event. |
System.Collections.Generic.IEnumerable<NodeChange> | changes | Describes what changes are made to catalog nodes. |
System.Collections.Generic.IEnumerable<System.String> | propertyNamesWithChanges | Name of properties that has been changed. |
NodeEventArgs(String, IEnumerable<String>)
Initializes a new instance of the NodeEventArgs class.
Declaration
[Obsolete("Use constructor without propertyNamesWithChanges instead. Will remain at least until October 2018.")]
public NodeEventArgs(string eventName, IEnumerable<string> propertyNamesWithChanges)
Parameters
Type | Name | Description |
---|---|---|
System.String | eventName | Name of the event. |
System.Collections.Generic.IEnumerable<System.String> | propertyNamesWithChanges | Name of properties that has been changed. |
Properties
Changes
Describes what changes are made to catalog nodes.
Declaration
public IEnumerable<NodeChange> Changes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<NodeChange> |
Remarks
This is only used in the NodeUpdated event when the changes are commited. In the NodeUpdating event this collection will be empty.
HasChangedParent
Gets or sets flag to indicate if one or more node has changed parent.
Declaration
public bool HasChangedParent { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
PropertyNamesWithChanges
The names of properties which have changes
Declaration
[Obsolete("This property is no longer used. Will be removed in next major.")]
public IEnumerable<string> PropertyNamesWithChanges { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |