Table of Contents

Class TriggerEventDispatchExtensions

Namespace
Bunit
Assembly
Bunit.Web.dll

General event dispatch helper extension methods.

public static class TriggerEventDispatchExtensions
Inheritance
TriggerEventDispatchExtensions
Inherited Members

Methods

TriggerEvent(IElement, string, EventArgs)

Raises the event eventName on the element element passing the eventArgs to the event handler.

public static void TriggerEvent(this IElement element, string eventName, EventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventName string

The name of the event to raise (using on-form, e.g. onclick).

eventArgs EventArgs

The event arguments to pass to the event handler. Use Empty to pass an empty EventArgs.

TriggerEventAsync(IElement, string, EventArgs)

Raises the event eventName on the element element passing the eventArgs to the event handler.

public static Task TriggerEventAsync(this IElement element, string eventName, EventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventName string

The name of the event to raise (using on-form, e.g. onclick).

eventArgs EventArgs

The event arguments to pass to the event handler.

Returns

Task

A Task that completes when the render caused by the triggering of the event finishes.

Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.