View Source
Class DeleteEventArgs<TEntity>
Inheritance
System.Object
System.EventArgs
Assembly: Umbraco.Core.dll
Syntax
public class DeleteEventArgs<TEntity> : CancellableEnumerableObjectEventArgs<TEntity>, IEquatable<CancellableEventArgs>, IEquatable<CancellableObjectEventArgs<IEnumerable<TEntity>>>, IEquatable<CancellableEnumerableObjectEventArgs<TEntity>>, IEquatable<DeleteEventArgs<TEntity>>
Type Parameters
Constructors
View Source
DeleteEventArgs(TEntity)
Constructor accepting a single entity instance
Declaration
public DeleteEventArgs(TEntity eventObject)
Parameters
Type |
Name |
Description |
TEntity |
eventObject |
|
View Source
DeleteEventArgs(TEntity, Boolean)
Constructor accepting a single entity instance
Declaration
public DeleteEventArgs(TEntity eventObject, bool canCancel)
Parameters
Type |
Name |
Description |
TEntity |
eventObject |
|
System.Boolean |
canCancel |
|
View Source
DeleteEventArgs(TEntity, Boolean, EventMessages)
Constructor accepting a single entity instance
Declaration
public DeleteEventArgs(TEntity eventObject, bool canCancel, EventMessages eventMessages)
Parameters
Type |
Name |
Description |
TEntity |
eventObject |
|
System.Boolean |
canCancel |
|
EventMessages |
eventMessages |
|
View Source
DeleteEventArgs(TEntity, EventMessages)
Constructor accepting a single entity instance
Declaration
public DeleteEventArgs(TEntity eventObject, EventMessages eventMessages)
Parameters
Type |
Name |
Description |
TEntity |
eventObject |
|
EventMessages |
eventMessages |
|
View Source
DeleteEventArgs(IEnumerable<TEntity>)
Constructor accepting multiple entities that are used in the delete operation
Declaration
public DeleteEventArgs(IEnumerable<TEntity> eventObject)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
eventObject |
|
View Source
DeleteEventArgs(IEnumerable<TEntity>, Boolean)
Constructor accepting multiple entities that are used in the delete operation
Declaration
public DeleteEventArgs(IEnumerable<TEntity> eventObject, bool canCancel)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
eventObject |
|
System.Boolean |
canCancel |
|
View Source
DeleteEventArgs(IEnumerable<TEntity>, Boolean, EventMessages)
Constructor accepting multiple entities that are used in the delete operation
Declaration
public DeleteEventArgs(IEnumerable<TEntity> eventObject, bool canCancel, EventMessages eventMessages)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
eventObject |
|
System.Boolean |
canCancel |
|
EventMessages |
eventMessages |
|
View Source
DeleteEventArgs(IEnumerable<TEntity>, EventMessages)
Constructor accepting multiple entities that are used in the delete operation
Declaration
public DeleteEventArgs(IEnumerable<TEntity> eventObject, EventMessages eventMessages)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
eventObject |
|
EventMessages |
eventMessages |
|
Properties
View Source
DeletedEntities
Returns all entities that were deleted during the operation
Declaration
public IEnumerable<TEntity> DeletedEntities { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
|
View Source
A list of media files that can be added to during a deleted operation for which Umbraco will ensure are removed
Declaration
public List<string> MediaFilesToDelete { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<System.String> |
|
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(DeleteEventArgs<TEntity>)
Declaration
public bool Equals(DeleteEventArgs<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(DeleteEventArgs<TEntity>, DeleteEventArgs<TEntity>)
Declaration
public static bool operator ==(DeleteEventArgs<TEntity> left, DeleteEventArgs<TEntity> right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
View Source
Inequality(DeleteEventArgs<TEntity>, DeleteEventArgs<TEntity>)
Declaration
public static bool operator !=(DeleteEventArgs<TEntity> left, DeleteEventArgs<TEntity> right)
Parameters
Returns
Type |
Description |
System.Boolean |
|