Class UserGroupDeletedNotification
Notification published after user groups have been deleted.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public sealed class UserGroupDeletedNotification : DeletedNotification<IUserGroup>, IStatefulNotification, INotification
Remarks
This notification is published after user groups have been successfully deleted, allowing handlers to react for auditing or cache invalidation purposes.
Constructors
View SourceUserGroupDeletedNotification(IEnumerable<IUserGroup>, EventMessages)
Initializes a new instance of the UserGroupDeletedNotification class with multiple user groups.
Declaration
public UserGroupDeletedNotification(IEnumerable<IUserGroup> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IUserGroup> | target | The user groups that were deleted. |
| EventMessages | messages | The event messages collection. |
UserGroupDeletedNotification(IUserGroup, EventMessages)
Initializes a new instance of the UserGroupDeletedNotification class with a single user group.
Declaration
public UserGroupDeletedNotification(IUserGroup target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IUserGroup | target | The user group that was deleted. |
| EventMessages | messages | The event messages collection. |