View Source
Class CopyEventArgs<TEntity>
Inheritance
object
EventArgs
Assembly: Umbraco.Core.dll
Syntax
public class CopyEventArgs<TEntity> : CancellableObjectEventArgs<TEntity>
Type Parameters
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
Declaration
public TEntity Copy { get; set; }
Property Value
View Source
Original
Declaration
public TEntity? Original { get; }
Property Value
View Source
ParentId
Gets or Sets the Id of the objects new parent.
Declaration
public int ParentId { get; }
Property Value
View Source
RelateToOriginal
Declaration
public bool RelateToOriginal { get; set; }
Property Value
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
Returns
View Source
operator !=(CopyEventArgs<TEntity>, CopyEventArgs<TEntity>)
Declaration
public static bool operator !=(CopyEventArgs<TEntity> left, CopyEventArgs<TEntity> right)
Parameters
Returns