EventCallbackFactoryEventArgsExtensions.Create Method

Definition

Overloads

Create(EventCallbackFactory, Object, Action<ChangeEventArgs>)

Creates an EventCallback for the provided receiver and callback.

Create(EventCallbackFactory, Object, Action<EventArgs>)

Creates an EventCallback for the provided receiver and callback.

Create(EventCallbackFactory, Object, Func<ChangeEventArgs,Task>)

Creates an EventCallback for the provided receiver and callback.

Create(EventCallbackFactory, Object, Func<EventArgs,Task>)

Creates an EventCallback for the provided receiver and callback.

Create(EventCallbackFactory, Object, Action<ChangeEventArgs>)

Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs

Creates an EventCallback for the provided receiver and callback.

C#
public static Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.ChangeEventArgs> Create (this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, Action<Microsoft.AspNetCore.Components.ChangeEventArgs> callback);

Parameters

receiver
Object

The event receiver.

callback
Action<ChangeEventArgs>

The event callback.

Returns

The EventCallback.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

Create(EventCallbackFactory, Object, Action<EventArgs>)

Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs

Creates an EventCallback for the provided receiver and callback.

C#
public static Microsoft.AspNetCore.Components.EventCallback<EventArgs> Create (this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, Action<EventArgs> callback);

Parameters

receiver
Object

The event receiver.

callback
Action<EventArgs>

The event callback.

Returns

The EventCallback.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

Create(EventCallbackFactory, Object, Func<ChangeEventArgs,Task>)

Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs

Creates an EventCallback for the provided receiver and callback.

C#
public static Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.ChangeEventArgs> Create (this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, Func<Microsoft.AspNetCore.Components.ChangeEventArgs,System.Threading.Tasks.Task> callback);

Parameters

receiver
Object

The event receiver.

callback
Func<ChangeEventArgs,Task>

The event callback.

Returns

The EventCallback.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

Create(EventCallbackFactory, Object, Func<EventArgs,Task>)

Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs
Source:
EventCallbackFactoryEventArgsExtensions.cs

Creates an EventCallback for the provided receiver and callback.

C#
public static Microsoft.AspNetCore.Components.EventCallback<EventArgs> Create (this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, Func<EventArgs,System.Threading.Tasks.Task> callback);

Parameters

receiver
Object

The event receiver.

callback
Func<EventArgs,Task>

The event callback.

Returns

The EventCallback.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0