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