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