Class InfoObjectAfterInsertEvent
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
An event invoked after a new info object is inserted.
public class InfoObjectAfterInsertEvent : InfoObjectEvent, IInfoObjectEvent, IEventState
- Inheritance
-
objectInfoObjectAfterInsertEvent
- Implements
- Derived
-
InfoObjectAfterInsertEvent<TInfo>
- Inherited Members
- Extension Methods
Remarks
To get notified about a specific type of info object being inserted, use InfoObjectAfterInsertEvent<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 Insert as it allows to provide a dedicated code for synchronous and asynchronous execution paths.
Constructors
InfoObjectAfterInsertEvent(BaseInfo, EventStateStore)
Initializes a new instance of the InfoObjectAfterInsertEvent using the infoObject
provided.
public InfoObjectAfterInsertEvent(BaseInfo infoObject, EventStateStore state)
Parameters
infoObject
BaseInfoInfo object that was inserted.
state
EventStateStoreState data to initialize the event with.
Exceptions
- ArgumentNullException
Thrown when
infoObject
is null.
Properties
InfoObject
Gets the info object that was inserted.
public BaseInfo InfoObject { get; }