View Source
Class CopyEventArgs<TEntity>
Inheritance
System.Object
System.EventArgs
Assembly: Umbraco.Core.dll
Syntax
public class CopyEventArgs<TEntity> : CancellableObjectEventArgs<TEntity>, IEquatable<CancellableEventArgs>, IEquatable<CancellableObjectEventArgs<TEntity>>, IEquatable<CopyEventArgs<TEntity>>
Type Parameters
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
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
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
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
Returns
Type |
Description |
System.Boolean |
|
View Source
Inequality(CopyEventArgs<TEntity>, CopyEventArgs<TEntity>)
Declaration
public static bool operator !=(CopyEventArgs<TEntity> left, CopyEventArgs<TEntity> right)
Parameters
Returns
Type |
Description |
System.Boolean |
|