Class ObjectNotification<T>
Abstract base class for notifications that carry a target object.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public abstract class ObjectNotification<T> : StatefulNotification, IStatefulNotification, INotification where T : class
Type Parameters
| Name | Description |
|---|---|
| T | The type of the target object associated with this notification. |
Remarks
This class extends StatefulNotification and provides a strongly-typed target object that represents the entity being operated on.
Constructors
View SourceObjectNotification(T, EventMessages)
Initializes a new instance of the ObjectNotification<T> class.
Declaration
protected ObjectNotification(T target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| T | target | The target object associated with this notification. |
| EventMessages | messages | The event messages collection. |
Properties
View SourceMessages
Gets the event messages collection associated with this notification.
Declaration
public EventMessages Messages { get; }
Property Value
| Type | Description |
|---|---|
| EventMessages |
Target
Gets the target object associated with this notification.
Declaration
protected T Target { get; }
Property Value
| Type | Description |
|---|---|
| T |