November Happy Hour will be moved to Thursday December 5th.

Class NodeEventArgs

Implements operations for the node event arguments.

Inheritance
System.Object
System.EventArgs
NodeEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Catalog.Events
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
Syntax
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

true if one or more parent node id was changed, false otherwise.

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>