Class InfoObjectBeforeDeleteEvent
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
An event invoked before an info object is deleted.
public class InfoObjectBeforeDeleteEvent : InfoObjectEvent, IInfoObjectEvent, IEventState
- Inheritance
-
objectInfoObjectBeforeDeleteEvent
- Implements
- Derived
-
InfoObjectBeforeDeleteEvent<TInfo>
- Inherited Members
- Extension Methods
Remarks
To get notified about a specific type of info object being deleted, use InfoObjectBeforeDeleteEvent<TInfo> instead.
Implement a corresponding event handler by inheriting IInfoObjectEventHandler<TInfoObjectEvent> and register it using AddInfoObjectEventHandler<TInfoObjectEvent, THandler>(IServiceCollection).
Using this approach is recommended over Delete as it allows to provide a dedicated code for synchronous and asynchronous execution paths.
Constructors
InfoObjectBeforeDeleteEvent(BaseInfo)
Initializes a new instance of the InfoObjectBeforeDeleteEvent using the infoObject
provided.
public InfoObjectBeforeDeleteEvent(BaseInfo infoObject)
Parameters
infoObject
BaseInfoInfo object being deleted.
Exceptions
- ArgumentNullException
Thrown when
infoObject
is null.
Properties
InfoObject
Gets the info object being deleted.
public BaseInfo InfoObject { get; }