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