Class SaveEventArgs<TEntity>
Inheritance
System.Object
System.EventArgs
CancellableObjectEventArgs<System.Collections.Generic.IEnumerable<TEntity>>
CancellableEnumerableObjectEventArgs<TEntity>
Namespace: Umbraco.Core.Events
Assembly: Umbraco.Core.dll
Syntax
public class SaveEventArgs<TEntity> : CancellableEnumerableObjectEventArgs<TEntity>, IEquatable<CancellableEventArgs>, IEquatable<CancellableObjectEventArgs<IEnumerable<TEntity>>>, IEquatable<CancellableEnumerableObjectEventArgs<TEntity>>
Type Parameters
Name | Description |
---|---|
TEntity |
Constructors
View SourceSaveEventArgs(TEntity)
Constructor accepting a single entity instance
Declaration
public SaveEventArgs(TEntity eventObject)
Parameters
Type | Name | Description |
---|---|---|
TEntity | eventObject |
SaveEventArgs(TEntity, Boolean)
Constructor accepting a single entity instance
Declaration
public SaveEventArgs(TEntity eventObject, bool canCancel)
Parameters
Type | Name | Description |
---|---|---|
TEntity | eventObject | |
System.Boolean | canCancel |
SaveEventArgs(TEntity, Boolean, EventMessages)
Constructor accepting a single entity instance
Declaration
public SaveEventArgs(TEntity eventObject, bool canCancel, EventMessages eventMessages)
Parameters
Type | Name | Description |
---|---|---|
TEntity | eventObject | |
System.Boolean | canCancel | |
EventMessages | eventMessages |
SaveEventArgs(TEntity, Boolean, EventMessages, IDictionary<String, Object>)
Constructor accepting a single entity instance
Declaration
public SaveEventArgs(TEntity eventObject, bool canCancel, EventMessages messages, IDictionary<string, object> additionalData)
Parameters
Type | Name | Description |
---|---|---|
TEntity | eventObject | |
System.Boolean | canCancel | |
EventMessages | messages | |
System.Collections.Generic.IDictionary<System.String, System.Object> | additionalData |
SaveEventArgs(TEntity, EventMessages)
Constructor accepting a single entity instance
Declaration
public SaveEventArgs(TEntity eventObject, EventMessages eventMessages)
Parameters
Type | Name | Description |
---|---|---|
TEntity | eventObject | |
EventMessages | eventMessages |
SaveEventArgs(IEnumerable<TEntity>)
Constructor accepting multiple entities that are used in the saving operation
Declaration
public SaveEventArgs(IEnumerable<TEntity> eventObject)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TEntity> | eventObject |
SaveEventArgs(IEnumerable<TEntity>, Boolean)
Constructor accepting multiple entities that are used in the saving operation
Declaration
public SaveEventArgs(IEnumerable<TEntity> eventObject, bool canCancel)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TEntity> | eventObject | |
System.Boolean | canCancel |
SaveEventArgs(IEnumerable<TEntity>, Boolean, EventMessages)
Constructor accepting multiple entities that are used in the saving operation
Declaration
public SaveEventArgs(IEnumerable<TEntity> eventObject, bool canCancel, EventMessages eventMessages)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TEntity> | eventObject | |
System.Boolean | canCancel | |
EventMessages | eventMessages |
SaveEventArgs(IEnumerable<TEntity>, Boolean, EventMessages, IDictionary<String, Object>)
Constructor accepting multiple entities that are used in the saving operation
Declaration
public SaveEventArgs(IEnumerable<TEntity> eventObject, bool canCancel, EventMessages messages, IDictionary<string, object> additionalData)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TEntity> | eventObject | |
System.Boolean | canCancel | |
EventMessages | messages | |
System.Collections.Generic.IDictionary<System.String, System.Object> | additionalData |
SaveEventArgs(IEnumerable<TEntity>, EventMessages)
Constructor accepting multiple entities that are used in the saving operation
Declaration
public SaveEventArgs(IEnumerable<TEntity> eventObject, EventMessages eventMessages)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<TEntity> | eventObject | |
EventMessages | eventMessages |
Properties
View SourceSavedEntities
Returns all entities that were saved during the operation
Declaration
public IEnumerable<TEntity> SavedEntities { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TEntity> |