Search Results for

    Show / Hide Table of Contents
    View Source

    Class CopyEventArgs<TEntity>

    Inheritance
    object
    EventArgs
    CancellableEventArgs
    CancellableObjectEventArgs
    CancellableObjectEventArgs<TEntity>
    Namespace: Umbraco.Cms.Core.Events
    Assembly: Umbraco.Core.dll
    Syntax
    public class CopyEventArgs<TEntity> : CancellableObjectEventArgs<TEntity>
    Type Parameters
    Name Description
    TEntity

    Constructors

    View Source

    CopyEventArgs(TEntity, TEntity, bool, int)

    Declaration
    public CopyEventArgs(TEntity original, TEntity copy, bool canCancel, int parentId)
    Parameters
    Type Name Description
    TEntity original
    TEntity copy
    bool canCancel
    int parentId
    View Source

    CopyEventArgs(TEntity, TEntity, bool, int, bool)

    Declaration
    public CopyEventArgs(TEntity eventObject, TEntity copy, bool canCancel, int parentId, bool relateToOriginal)
    Parameters
    Type Name Description
    TEntity eventObject
    TEntity copy
    bool canCancel
    int parentId
    bool relateToOriginal
    View Source

    CopyEventArgs(TEntity, TEntity, int)

    Declaration
    public CopyEventArgs(TEntity eventObject, TEntity copy, int parentId)
    Parameters
    Type Name Description
    TEntity eventObject
    TEntity copy
    int parentId

    Properties

    View Source

    Copy

    The copied entity

    Declaration
    public TEntity Copy { get; set; }
    Property Value
    Type Description
    TEntity
    View Source

    Original

    The original entity

    Declaration
    public TEntity? Original { get; }
    Property Value
    Type Description
    TEntity
    View Source

    ParentId

    Gets or Sets the Id of the objects new parent.

    Declaration
    public int ParentId { get; }
    Property Value
    Type Description
    int
    View Source

    RelateToOriginal

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

    Methods

    View Source

    Equals(object?)

    Determines whether the specified object is equal to the current object.

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

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    View Source

    Equals(CopyEventArgs<TEntity>?)

    Indicates whether the current object is equal to another object of the same type.

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

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    View Source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Operators

    View Source

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

    Declaration
    public static bool operator ==(CopyEventArgs<TEntity> left, CopyEventArgs<TEntity> right)
    Parameters
    Type Name Description
    CopyEventArgs<TEntity> left
    CopyEventArgs<TEntity> right
    Returns
    Type Description
    bool
    View Source

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

    Declaration
    public static bool operator !=(CopyEventArgs<TEntity> left, CopyEventArgs<TEntity> right)
    Parameters
    Type Name Description
    CopyEventArgs<TEntity> left
    CopyEventArgs<TEntity> right
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX