Class EnumerableObjectNotification<T>
Abstract base class for notifications that carry a collection of target objects.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public abstract class EnumerableObjectNotification<T> : ObjectNotification<IEnumerable<T>>, IStatefulNotification, INotification
Type Parameters
| Name | Description |
|---|---|
| T | The type of items in the collection. |
Remarks
This class extends ObjectNotification<T> with System.Collections.Generic.IEnumerable<T> as the target type, providing convenient constructors for both single items and collections.
Constructors
View SourceEnumerableObjectNotification(IEnumerable<T>, EventMessages)
Initializes a new instance of the EnumerableObjectNotification<T> class with multiple target items.
Declaration
protected EnumerableObjectNotification(IEnumerable<T> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | target | The collection of target items. |
| EventMessages | messages | The event messages collection. |
EnumerableObjectNotification(T, EventMessages)
Initializes a new instance of the EnumerableObjectNotification<T> class with a single target item.
Declaration
protected EnumerableObjectNotification(T target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| T | target | The single target item. |
| EventMessages | messages | The event messages collection. |