Class DomainDeletingNotification
Notification published before domains are deleted.
Inheritance
object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class DomainDeletingNotification : DeletingNotification<IDomain>, IStatefulNotification, ICancelableNotification, INotification
Remarks
This notification is cancelable, allowing handlers to prevent the delete operation
by setting Cancel to true.
Constructors
View SourceDomainDeletingNotification(IEnumerable<IDomain>, EventMessages)
Initializes a new instance of the DomainDeletingNotification class with multiple domains.
Declaration
public DomainDeletingNotification(IEnumerable<IDomain> target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IDomain> | target | The domains being deleted. |
| EventMessages | messages | The event messages collection. |
DomainDeletingNotification(IDomain, EventMessages)
Initializes a new instance of the DomainDeletingNotification class with a single domain.
Declaration
public DomainDeletingNotification(IDomain target, EventMessages messages)
Parameters
| Type | Name | Description |
|---|---|---|
| IDomain | target | The domain being deleted. |
| EventMessages | messages | The event messages collection. |