Search Results for

    Show / Hide Table of Contents
    View Source

    Class ImportingPackageNotification

    Notification published before a package is imported.

    Inheritance
    object
    StatefulNotification
    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 Source

    ImportingPackageNotification(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 Source

    Cancel

    Gets or sets a value indicating whether the operation should be canceled.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    bool

    true if the operation should be canceled; otherwise, false.

    View Source

    PackageName

    Gets the name of the package being imported.

    Declaration
    public string PackageName { get; }
    Property Value
    Type Description
    string
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX