Class SortingNotification<T>
Abstract base class for notifications published before entities are sorted.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public abstract class SortingNotification<T> : CancelableEnumerableObjectNotification<T>, IStatefulNotification, ICancelableNotification, INotification
Type Parameters
| Name | Description |
|---|---|
| T | The type of entities being sorted. |
Remarks
This notification is cancelable, allowing handlers to prevent the sort operation. The notification is published before the new sort order is persisted.
Constructors
View SourceSortingNotification(IEnumerable<T>, EventMessages)
Initializes a new instance of the SortingNotification<T> class.
Declaration
protected SortingNotification(IEnumerable<T> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | target | The collection of entities being sorted. |
| EventMessages | messages | The event messages collection. |
Properties
View SourceSortedEntities
Gets the collection of entities being sorted.
Declaration
public IEnumerable<T> SortedEntities { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<T> |