Class MoveEventArgs<TEntity>
Namespace: Umbraco.Cms.Core.Events
Assembly: Umbraco.Core.dll
Syntax
public class MoveEventArgs<TEntity> : CancellableObjectEventArgs<TEntity>
Type Parameters
| Name | Description |
|---|---|
| TEntity |
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?)
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. |
Equals(MoveEventArgs<TEntity>?)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(MoveEventArgs<TEntity>? other)
Parameters
| Type | Name | Description |
|---|---|---|
| MoveEventArgs<TEntity> | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
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 Sourceoperator ==(MoveEventArgs<TEntity>, MoveEventArgs<TEntity>)
Declaration
public static bool operator ==(MoveEventArgs<TEntity> left, MoveEventArgs<TEntity> right)
Parameters
| Type | Name | Description |
|---|---|---|
| MoveEventArgs<TEntity> | left | |
| MoveEventArgs<TEntity> | right |
Returns
| Type | Description |
|---|---|
| bool |
operator !=(MoveEventArgs<TEntity>, MoveEventArgs<TEntity>)
Declaration
public static bool operator !=(MoveEventArgs<TEntity> left, MoveEventArgs<TEntity> right)
Parameters
| Type | Name | Description |
|---|---|---|
| MoveEventArgs<TEntity> | left | |
| MoveEventArgs<TEntity> | right |
Returns
| Type | Description |
|---|---|
| bool |