Table of Contents

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
object
InfoObjectBeforeUpdateEvent
Implements
Derived
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 BaseInfo

Info object being updated.

Exceptions

ArgumentNullException

Thrown when infoObject is null.

Properties

InfoObject

Gets the info object being updated.

public BaseInfo InfoObject { get; }

Property Value

BaseInfo

See Also