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