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