View Source
Class MigrationEventArgs
Inheritance
object
EventArgs
Assembly: Umbraco.Infrastructure.dll
Syntax
public class MigrationEventArgs : CancellableObjectEventArgs<IList<Type>>
Constructors
View Source
MigrationEventArgs(IList<Type>, SemVersion, SemVersion, string)
Declaration
public MigrationEventArgs(IList<Type> migrationTypes, SemVersion configuredVersion, SemVersion targetVersion, string productName)
Parameters
| Type |
Name |
Description |
| IList<Type> |
migrationTypes |
|
| SemVersion |
configuredVersion |
|
| SemVersion |
targetVersion |
|
| string |
productName |
|
View Source
MigrationEventArgs(IList<Type>, SemVersion, SemVersion, string, bool)
Declaration
public MigrationEventArgs(IList<Type> migrationTypes, SemVersion configuredVersion, SemVersion targetVersion, string productName, bool canCancel)
Parameters
| Type |
Name |
Description |
| IList<Type> |
migrationTypes |
|
| SemVersion |
configuredVersion |
|
| SemVersion |
targetVersion |
|
| string |
productName |
|
| bool |
canCancel |
|
Properties
View Source
Gets the origin version of the migration, i.e. the one that is currently installed.
Declaration
public SemVersion ConfiguredSemVersion { get; }
Property Value
View Source
MigrationsTypes
Returns all migrations that were used in the migration runner
Declaration
public IList<Type>? MigrationsTypes { get; }
Property Value
| Type |
Description |
| IList<Type> |
|
View Source
ProductName
Declaration
public string ProductName { get; }
Property Value
View Source
TargetSemVersion
Gets the target version of the migration.
Declaration
public SemVersion TargetSemVersion { get; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
View Source
Equals(MigrationEventArgs?)
Declaration
public bool Equals(MigrationEventArgs? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Operators
View Source
operator ==(MigrationEventArgs, MigrationEventArgs)
Declaration
public static bool operator ==(MigrationEventArgs left, MigrationEventArgs right)
Parameters
Returns
View Source
operator !=(MigrationEventArgs, MigrationEventArgs)
Declaration
public static bool operator !=(MigrationEventArgs left, MigrationEventArgs right)
Parameters
Returns