Class MoveEventInfo<TEntity>
Represents information about a single entity move operation.
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 SourceMoveEventInfo(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. |
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 SourceNewParentId
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 |
NewParentKey
Gets the unique identifier of the new parent.
Declaration
public Guid? NewParentKey { get; }
Property Value
| Type | Description |
|---|---|
| Guid? |
Methods
View SourceEquals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
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 |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Operators
View Sourceoperator ==(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 |
|
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 |
|