Search Results for

    Show / Hide Table of Contents
    View Source

    Class RelationDeletedNotification

    A notification that is published when a relation has been deleted.

    Inheritance
    object
    StatefulNotification
    ObjectNotification<IEnumerable<IRelation>>
    EnumerableObjectNotification<IRelation>
    DeletedNotification<IRelation>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public class RelationDeletedNotification : DeletedNotification<IRelation>, IStatefulNotification, INotification

    Constructors

    View Source

    RelationDeletedNotification(IEnumerable<IRelation>, EventMessages)

    Initializes a new instance of the RelationDeletedNotification.

    Declaration
    public RelationDeletedNotification(IEnumerable<IRelation> target, EventMessages messages)
    Parameters
    Type Name Description
    IEnumerable<IRelation> target

    Gets the collection of IRelation objects having been deleted.

    EventMessages messages

    Initializes a new instance of the EventMessages.

    View Source

    RelationDeletedNotification(IRelation, EventMessages)

    Initializes a new instance of the RelationDeletedNotification class with a single relation.

    Declaration
    public RelationDeletedNotification(IRelation target, EventMessages messages)
    Parameters
    Type Name Description
    IRelation target

    The relation that was deleted.

    EventMessages messages

    The event messages collection.

    Properties

    View Source

    IsAutomatic

    Gets or sets a value indicating whether the relations were deleted automatically as a side-effect of content being saved (e.g. umbMedia, umbDocument, umbMember), rather than explicitly via IRelationService.

    Declaration
    public bool IsAutomatic { get; set; }
    Property Value
    Type Description
    bool
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX