Search Results for

    Show / Hide Table of Contents
    View Source

    Class PackageMigrationPlan

    Represents a package migration plan.

    Inheritance
    System.Object
    MigrationPlan
    Namespace: Umbraco.Cms.Core.Packaging
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public abstract class PackageMigrationPlan : MigrationPlan, IDiscoverable

    Constructors

    View Source

    PackageMigrationPlan(String)

    Initializes a new instance of the PackageMigrationPlan class.

    Declaration
    protected PackageMigrationPlan(string packageName)
    Parameters
    Type Name Description
    System.String packageName

    The package name that the plan is for. If the package has a package.manifest these must match.

    View Source

    PackageMigrationPlan(String, String)

    Initializes a new instance of the PackageMigrationPlan class.

    Declaration
    protected PackageMigrationPlan(string packageName, string planName)
    Parameters
    Type Name Description
    System.String packageName

    The package name that the plan is for. If the package has a package.manifest these must match.

    System.String planName

    The plan name for the package. This should be the same name as the package name, if there is only one plan in the package.

    View Source

    PackageMigrationPlan(String, String, String)

    Initializes a new instance of the PackageMigrationPlan class.

    Declaration
    protected PackageMigrationPlan(string packageId, string packageName, string planName)
    Parameters
    Type Name Description
    System.String packageId

    The package identifier that the plan is for. If the package has a package.manifest these must match.

    System.String packageName

    The package name that the plan is for. If the package has a package.manifest these must match.

    System.String planName

    The plan name for the package. This should be the same name as the package name, if there is only one plan in the package.

    Properties

    View Source

    IgnoreCurrentState

    Inform the plan executor to ignore all saved package state and run the migration from initial state to it's end state.

    Declaration
    public override bool IgnoreCurrentState { get; }
    Property Value
    Type Description
    System.Boolean
    View Source

    PackageId

    Gets the package identifier.

    Declaration
    public string PackageId { get; set; }
    Property Value
    Type Description
    System.String

    The package identifier.

    View Source

    PackageName

    Gets the package name.

    Declaration
    public string PackageName { get; set; }
    Property Value
    Type Description
    System.String

    The package name.

    Methods

    View Source

    DefinePlan()

    Defines the plan.

    Declaration
    protected abstract void DefinePlan()
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • PackageMigrationPlan(String)
      • PackageMigrationPlan(String, String)
      • PackageMigrationPlan(String, String, String)
    • Properties
      • IgnoreCurrentState
      • PackageId
      • PackageName
    • Methods
      • DefinePlan()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX