Search Results for

    Show / Hide Table of Contents
    View Source

    Class CopyEventArgs<TEntity>

    Inheritance
    System.Object
    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, Boolean, Int32)

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

    CopyEventArgs(TEntity, TEntity, Boolean, Int32, Boolean)

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

    CopyEventArgs(TEntity, TEntity, Int32)

    Declaration
    public CopyEventArgs(TEntity eventObject, TEntity copy, int parentId)
    Parameters
    Type Name Description
    TEntity eventObject
    TEntity copy
    System.Int32 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
    System.Int32
    View Source

    RelateToOriginal

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

    Methods

    View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    View Source

    Equals(CopyEventArgs<TEntity>)

    Declaration
    public bool Equals(CopyEventArgs<TEntity> other)
    Parameters
    Type Name Description
    CopyEventArgs<TEntity> other
    Returns
    Type Description
    System.Boolean
    View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    Operators

    View Source

    Equality(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
    System.Boolean
    View Source

    Inequality(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
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • CopyEventArgs(TEntity, TEntity, Boolean, Int32)
      • CopyEventArgs(TEntity, TEntity, Boolean, Int32, Boolean)
      • CopyEventArgs(TEntity, TEntity, Int32)
    • Properties
      • Copy
      • Original
      • ParentId
      • RelateToOriginal
    • Methods
      • Equals(Object)
      • Equals(CopyEventArgs<TEntity>)
      • GetHashCode()
    • Operators
      • Equality(CopyEventArgs<TEntity>, CopyEventArgs<TEntity>)
      • Inequality(CopyEventArgs<TEntity>, CopyEventArgs<TEntity>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX