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