Class CancelableEnumerableObjectNotification<T>
Abstract base class for cancelable notifications that carry a collection of target objects.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public abstract class CancelableEnumerableObjectNotification<T> : CancelableObjectNotification<IEnumerable<T>>, IStatefulNotification, ICancelableNotification, INotification
Type Parameters
| Name | Description |
|---|---|
| T | The type of items in the collection. |
Remarks
This class combines the functionality of CancelableObjectNotification<T> with System.Collections.Generic.IEnumerable<T> as the target type, allowing handlers to both access the collection of items and cancel the operation if needed.
Constructors
View SourceCancelableEnumerableObjectNotification(IEnumerable<T>, EventMessages)
Initializes a new instance of the CancelableEnumerableObjectNotification<T> class with multiple target items.
Declaration
protected CancelableEnumerableObjectNotification(IEnumerable<T> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | target | The collection of target items. |
| EventMessages | messages | The event messages collection. |
CancelableEnumerableObjectNotification(T, EventMessages)
Initializes a new instance of the CancelableEnumerableObjectNotification<T> class with a single target item.
Declaration
protected CancelableEnumerableObjectNotification(T target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| T | target | The single target item. |
| EventMessages | messages | The event messages collection. |