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