Class TemplateDeletingNotification
A notification that is used to trigger the IFileService when the DeleteTemplate method is called in the API.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class TemplateDeletingNotification : DeletingNotification<ITemplate>, IStatefulNotification, ICancelableNotification, INotification
Constructors
View SourceTemplateDeletingNotification(IEnumerable<ITemplate>, EventMessages)
Initializes a new instance of the TemplateDeletingNotification class with multiple templates.
Declaration
public TemplateDeletingNotification(IEnumerable<ITemplate> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<ITemplate> | target | The templates being deleted. |
| EventMessages | messages | The event messages collection. |
TemplateDeletingNotification(ITemplate, EventMessages)
Initializes a new instance of the TemplateDeletingNotification class with a single template.
Declaration
public TemplateDeletingNotification(ITemplate target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| ITemplate | target | The template being deleted. |
| EventMessages | messages | The event messages collection. |