Class UserDeletingNotification
Notification that is published before a user is deleted.
Inheritance
object
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 SourceUserDeletingNotification(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. |
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. |