Class InfoObjectBeforeUpdateEvent
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
An event invoked before an info object is updated.
public class InfoObjectBeforeUpdateEvent : InfoObjectEvent, IInfoObjectEvent, IEventState
- Inheritance
-
objectInfoObjectBeforeUpdateEvent
- Implements
- Derived
-
InfoObjectBeforeUpdateEvent<TInfo>
- Inherited Members
- Extension Methods
Remarks
To get notified about a specific type of info object being updated, use InfoObjectBeforeUpdateEvent<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
InfoObjectBeforeUpdateEvent(BaseInfo)
Initializes a new instance of the InfoObjectBeforeUpdateEvent using the infoObject
provided.
public InfoObjectBeforeUpdateEvent(BaseInfo infoObject)
Parameters
infoObject
BaseInfoInfo object being updated.
Exceptions
- ArgumentNullException
Thrown when
infoObject
is null.
Properties
InfoObject
Gets the info object being updated.
public BaseInfo InfoObject { get; }