Class EntryEventArgs
Implements operations for the entry event arguments.
Inheritance
System.Object
System.EventArgs
EntryEventArgs
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: 12.17.2Syntax
public class EntryEventArgs : CatalogSystemEventArgs
Constructors
EntryEventArgs(String, IEnumerable<EntryChange>)
Initializes a new instance of the EntryEventArgs class.
Declaration
public EntryEventArgs(string eventName, IEnumerable<EntryChange> changes)
Parameters
Type | Name | Description |
---|---|---|
System.String | eventName | Name of the event. |
System.Collections.Generic.IEnumerable<EntryChange> | changes | Describes what changes are made to catalog entries. |
EntryEventArgs(String, IEnumerable<EntryChange>, IEnumerable<String>)
Initializes a new instance of the EntryEventArgs class.
Declaration
[Obsolete("Use constructor without propertyNamesWithChanges. Will be removed in next major.")]
public EntryEventArgs(string eventName, IEnumerable<EntryChange> changes, IEnumerable<string> propertyNamesWithChanges)
Parameters
Type | Name | Description |
---|---|---|
System.String | eventName | Name of the event. |
System.Collections.Generic.IEnumerable<EntryChange> | changes | Describes what changes are made to catalog entries. |
System.Collections.Generic.IEnumerable<System.String> | propertyNamesWithChanges | Name of properties that has been changed. |
EntryEventArgs(String, IEnumerable<String>)
Initializes a new instance of the EntryEventArgs class.
Declaration
[Obsolete("Use an other constructor. Will remain at least until October 2018.")]
public EntryEventArgs(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 entries.
Declaration
public IEnumerable<EntryChange> Changes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<EntryChange> |
Remarks
This is only used in the EntryUpdated event when the changes are commited. In the EntryUpdating event this collection will be empty.
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> |