Search Results for

    Show / Hide Table of Contents
    View Source

    Class UserDeletingNotification

    Notification that is published before a user is deleted.

    Inheritance
    object
    StatefulNotification
    ObjectNotification<IEnumerable<IUser>>
    CancelableObjectNotification<IEnumerable<IUser>>
    CancelableEnumerableObjectNotification<IUser>
    DeletingNotification<IUser>
    Namespace: Umbraco.Cms.Core.Notifications
    Assembly: Umbraco.Core.dll
    Syntax
    public sealed class UserDeletingNotification : DeletingNotification<IUser>, IStatefulNotification, ICancelableNotification, INotification
    Remarks

    This notification is cancelable, allowing handlers to prevent the delete operation. The notification is published by the IUserService before the user is removed.

    Constructors

    View Source

    UserDeletingNotification(IEnumerable<IUser>, EventMessages)

    Initializes a new instance of the UserDeletingNotification class with multiple users.

    Declaration
    public UserDeletingNotification(IEnumerable<IUser> target, EventMessages messages)
    Parameters
    Type Name Description
    IEnumerable<IUser> target

    The collection of users being deleted.

    EventMessages messages

    The event messages collection.

    View Source

    UserDeletingNotification(IUser, EventMessages)

    Initializes a new instance of the UserDeletingNotification class with a single user.

    Declaration
    public UserDeletingNotification(IUser target, EventMessages messages)
    Parameters
    Type Name Description
    IUser target

    The user being deleted.

    EventMessages messages

    The event messages collection.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX