Search Results for

    Show / Hide Table of Contents
    View Source

    Class EventDefinition

    Represents an event definition that wraps a standard System.EventHandler.

    Inheritance
    object
    EventDefinitionBase
    Namespace: Umbraco.Cms.Core.Events
    Assembly: Umbraco.Core.dll
    Syntax
    public class EventDefinition : EventDefinitionBase, IEventDefinition

    Constructors

    View Source

    EventDefinition(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 Source

    RaiseEvent()

    Raises the event by invoking the tracked event handler.

    Declaration
    public override void RaiseEvent()
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX