Class ImportingPackageNotification
Notification published before a package is imported.
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Core.dll
Syntax
public class ImportingPackageNotification : StatefulNotification, IStatefulNotification, ICancelableNotification, INotification
Remarks
This notification is cancelable, allowing handlers to prevent the package import
by setting Cancel to true.
Constructors
View SourceImportingPackageNotification(string)
Initializes a new instance of the ImportingPackageNotification class.
Declaration
public ImportingPackageNotification(string packageName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | packageName | The name of the package being imported. |
Properties
View SourceCancel
Gets or sets a value indicating whether the operation should be canceled.
Declaration
public bool Cancel { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
PackageName
Gets the name of the package being imported.
Declaration
public string PackageName { get; }
Property Value
| Type | Description |
|---|---|
| string |