Class MoveEventArgs<TEntity>
Represents event data for move operations.
Namespace: Umbraco.Cms.Core.Events
Assembly: Umbraco.Core.dll
Syntax
public class MoveEventArgs<TEntity> : CancellableObjectEventArgs<TEntity>
Type Parameters
| Name | Description |
|---|---|
| TEntity | The type of the entity being moved. |
Constructors
View SourceMoveEventArgs(bool, EventMessages, params MoveEventInfo<TEntity>[])
Constructor accepting a collection of MoveEventInfo objects
Declaration
public MoveEventArgs(bool canCancel, EventMessages eventMessages, params MoveEventInfo<TEntity>[] moveInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | canCancel | |
| EventMessages | eventMessages | |
| MoveEventInfo<TEntity>[] | moveInfo | A collection of MoveEventInfo objects that exposes all entities that have been moved during a single move operation |
MoveEventArgs(bool, params MoveEventInfo<TEntity>[])
Constructor accepting a collection of MoveEventInfo objects
Declaration
public MoveEventArgs(bool canCancel, params MoveEventInfo<TEntity>[] moveInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | canCancel | |
| MoveEventInfo<TEntity>[] | moveInfo | A collection of MoveEventInfo objects that exposes all entities that have been moved during a single move operation |
MoveEventArgs(EventMessages, params MoveEventInfo<TEntity>[])
Constructor accepting a collection of MoveEventInfo objects
Declaration
public MoveEventArgs(EventMessages eventMessages, params MoveEventInfo<TEntity>[] moveInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| EventMessages | eventMessages | |
| MoveEventInfo<TEntity>[] | moveInfo | A collection of MoveEventInfo objects that exposes all entities that have been moved during a single move operation |
MoveEventArgs(params MoveEventInfo<TEntity>[])
Constructor accepting a collection of MoveEventInfo objects
Declaration
public MoveEventArgs(params MoveEventInfo<TEntity>[] moveInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| MoveEventInfo<TEntity>[] | moveInfo | A collection of MoveEventInfo objects that exposes all entities that have been moved during a single move operation |
Properties
View SourceMoveInfoCollection
Gets all MoveEventInfo objects used to create the object
Declaration
public IEnumerable<MoveEventInfo<TEntity>>? MoveInfoCollection { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<MoveEventInfo<TEntity>> |
Methods
View SourceEquals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Equals(MoveEventArgs<TEntity>?)
Declaration
public bool Equals(MoveEventArgs<TEntity>? other)
Parameters
| Type | Name | Description |
|---|---|---|
| MoveEventArgs<TEntity> | other |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Operators
View Sourceoperator ==(MoveEventArgs<TEntity>, MoveEventArgs<TEntity>)
Determines whether two MoveEventArgs<TEntity> instances are equal.
Declaration
public static bool operator ==(MoveEventArgs<TEntity> left, MoveEventArgs<TEntity> right)
Parameters
| Type | Name | Description |
|---|---|---|
| MoveEventArgs<TEntity> | left | The first instance to compare. |
| MoveEventArgs<TEntity> | right | The second instance to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|
operator !=(MoveEventArgs<TEntity>, MoveEventArgs<TEntity>)
Determines whether two MoveEventArgs<TEntity> instances are not equal.
Declaration
public static bool operator !=(MoveEventArgs<TEntity> left, MoveEventArgs<TEntity> right)
Parameters
| Type | Name | Description |
|---|---|---|
| MoveEventArgs<TEntity> | left | The first instance to compare. |
| MoveEventArgs<TEntity> | right | The second instance to compare. |
Returns
| Type | Description |
|---|---|
| bool |
|