Search Results for

    Show / Hide Table of Contents
    View Source

    Class MoveEventInfo<TEntity>

    Represents information about a single entity move operation.

    Inheritance
    object
    MoveEventInfoBase<TEntity>
    Namespace: Umbraco.Cms.Core.Events
    Assembly: Umbraco.Core.dll
    Syntax
    public class MoveEventInfo<TEntity> : MoveEventInfoBase<TEntity>
    Type Parameters
    Name Description
    TEntity

    The type of the entity being moved.

    Constructors

    View Source

    MoveEventInfo(TEntity, string, int)

    Initializes a new instance of the MoveEventInfo<TEntity> class.

    Declaration
    public MoveEventInfo(TEntity entity, string originalPath, int newParentId)
    Parameters
    Type Name Description
    TEntity entity

    The entity being moved.

    string originalPath

    The original path of the entity.

    int newParentId

    The identifier of the new parent.

    View Source

    MoveEventInfo(TEntity, string, int, Guid?)

    Initializes a new instance of the MoveEventInfo<TEntity> class.

    Declaration
    public MoveEventInfo(TEntity entity, string originalPath, int newParentId, Guid? newParentKey)
    Parameters
    Type Name Description
    TEntity entity

    The entity being moved.

    string originalPath

    The original path of the entity.

    int newParentId

    The identifier of the new parent.

    Guid? newParentKey

    The unique identifier of the new parent.

    Properties

    View Source

    NewParentId

    Gets or sets the identifier of the new parent.

    Declaration
    [Obsolete("Please use NewParentKey instead. Scheduled for removal in Umbraco 18.")]
    public int NewParentId { get; set; }
    Property Value
    Type Description
    int
    View Source

    NewParentKey

    Gets the unique identifier of the new parent.

    Declaration
    public Guid? NewParentKey { get; }
    Property Value
    Type Description
    Guid?

    Methods

    View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    View Source

    Equals(MoveEventInfo<TEntity>?)

    Determines whether this instance is equal to another MoveEventInfo<TEntity> instance.

    Declaration
    public bool Equals(MoveEventInfo<TEntity>? other)
    Parameters
    Type Name Description
    MoveEventInfo<TEntity> other

    The other instance to compare.

    Returns
    Type Description
    bool

    true if the instances are equal; otherwise, false.

    View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Operators

    View Source

    operator ==(MoveEventInfo<TEntity>, MoveEventInfo<TEntity>)

    Determines whether two MoveEventInfo<TEntity> instances are equal.

    Declaration
    public static bool operator ==(MoveEventInfo<TEntity> left, MoveEventInfo<TEntity> right)
    Parameters
    Type Name Description
    MoveEventInfo<TEntity> left

    The first instance to compare.

    MoveEventInfo<TEntity> right

    The second instance to compare.

    Returns
    Type Description
    bool

    true if the instances are equal; otherwise, false.

    View Source

    operator !=(MoveEventInfo<TEntity>, MoveEventInfo<TEntity>)

    Determines whether two MoveEventInfo<TEntity> instances are not equal.

    Declaration
    public static bool operator !=(MoveEventInfo<TEntity> left, MoveEventInfo<TEntity> right)
    Parameters
    Type Name Description
    MoveEventInfo<TEntity> left

    The first instance to compare.

    MoveEventInfo<TEntity> right

    The second instance to compare.

    Returns
    Type Description
    bool

    true if the instances are not equal; otherwise, false.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX