Class UserSavingNotification
Notification that is published before a user is saved.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class UserSavingNotification : SavingNotification<IUser>, IStatefulNotification, ICancelableNotification, INotification
Remarks
This notification is cancelable, allowing handlers to prevent the save operation. The notification is published by the IUserService before the user is persisted.
Constructors
View SourceUserSavingNotification(IEnumerable<IUser>, EventMessages)
Initializes a new instance of the UserSavingNotification class with multiple users.
Declaration
public UserSavingNotification(IEnumerable<IUser> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IUser> | target | The collection of users being saved. |
| EventMessages | messages | The event messages collection. |
UserSavingNotification(IUser, EventMessages)
Initializes a new instance of the UserSavingNotification class with a single user.
Declaration
public UserSavingNotification(IUser target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IUser | target | The user being saved. |
| EventMessages | messages | The event messages collection. |