Search Results for

    Show / Hide Table of Contents
    View Source

    Class ObjectNotification<T>

    Abstract base class for notifications that carry a target object.

    Inheritance
    object
    StatefulNotification
    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 Source

    ObjectNotification(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 Source

    Messages

    Gets the event messages collection associated with this notification.

    Declaration
    public EventMessages Messages { get; }
    Property Value
    Type Description
    EventMessages
    View Source

    Target

    Gets the target object associated with this notification.

    Declaration
    protected T Target { get; }
    Property Value
    Type Description
    T
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX