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