Class RollbackEventArgs<TEntity>
Represents event data for rollback operations.
Namespace: Umbraco.Cms.Core.Events
Assembly: Umbraco.Core.dll
Syntax
public class RollbackEventArgs<TEntity> : CancellableObjectEventArgs<TEntity>
Type Parameters
| Name | Description |
|---|---|
| TEntity | The type of the entity being rolled back. |
Constructors
View SourceRollbackEventArgs(TEntity)
Initializes a new instance of the RollbackEventArgs<TEntity> class with cancellation enabled.
Declaration
public RollbackEventArgs(TEntity eventObject)
Parameters
| Type | Name | Description |
|---|---|---|
| TEntity | eventObject | The entity being rolled back. |
RollbackEventArgs(TEntity, bool)
Initializes a new instance of the RollbackEventArgs<TEntity> class.
Declaration
public RollbackEventArgs(TEntity eventObject, bool canCancel)
Parameters
| Type | Name | Description |
|---|---|---|
| TEntity | eventObject | The entity being rolled back. |
| bool | canCancel | A value indicating whether the event can be cancelled. |
Properties
View SourceEntity
The entity being rolledback
Declaration
public TEntity? Entity { get; }
Property Value
| Type | Description |
|---|---|
| TEntity |