Class DictionaryItemSavingNotification
A notification that is used to trigger the ILocalizationService when the Save (IDictionaryItem overload) method is called in the API.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class DictionaryItemSavingNotification : SavingNotification<IDictionaryItem>, IStatefulNotification, ICancelableNotification, INotification
Remarks
This notification is cancelable, allowing handlers to prevent the save operation
by setting Cancel to true.
Constructors
View SourceDictionaryItemSavingNotification(IEnumerable<IDictionaryItem>, EventMessages)
Initializes a new instance of the DictionaryItemSavingNotification class with multiple dictionary items.
Declaration
public DictionaryItemSavingNotification(IEnumerable<IDictionaryItem> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IDictionaryItem> | target | The dictionary items being saved. |
| EventMessages | messages | The event messages collection. |
DictionaryItemSavingNotification(IDictionaryItem, EventMessages)
Initializes a new instance of the DictionaryItemSavingNotification class with a single dictionary item.
Declaration
public DictionaryItemSavingNotification(IDictionaryItem target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IDictionaryItem | target | The dictionary item being saved. |
| EventMessages | messages | The event messages collection. |