Class EventDefinition
Represents an event definition that wraps a standard System.EventHandler.
Namespace: Umbraco.Cms.Core.Events
Assembly: Umbraco.Core.dll
Syntax
public class EventDefinition : EventDefinitionBase, IEventDefinition
Constructors
View SourceEventDefinition(EventHandler, object, EventArgs, string?)
Initializes a new instance of the EventDefinition class.
Declaration
public EventDefinition(EventHandler trackedEvent, object sender, EventArgs args, string? eventName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| EventHandler | trackedEvent | The event handler to track. |
| object | sender | The source of the event. |
| EventArgs | args | The event arguments. |
| string | eventName | The optional name of the event. |
Methods
View SourceRaiseEvent()
Raises the event by invoking the tracked event handler.
Declaration
public override void RaiseEvent()