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