Class InfoObjectEvent
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Represents a common base class for info object events.
public abstract class InfoObjectEvent : IInfoObjectEvent, IEventState
- Inheritance
-
objectInfoObjectEvent
- Implements
- Derived
- Extension Methods
Constructors
InfoObjectEvent(EventStateStore)
Initializes a new instance of the InfoObjectEvent class using the optional state
.
protected InfoObjectEvent(EventStateStore state = null)
Parameters
state
EventStateStoreOptional state data to initialize the event with.
Remarks
The state allows for passing data between corresponding pairs of before and after event processing handlers (such as InfoObjectBeforeInsertEvent<TInfo> and InfoObjectAfterInsertEvent<TInfo>).
Properties
State
Gets the state of the event.
public EventStateStore State { get; }
Property Value
Remarks
Use the state to pass data between event processing handlers if the event is a compound event consisting of multiple associated events (such as before and after events).