Renderer.DispatchEventAsync 方法

定义

重载

DispatchEventAsync(UInt64, EventFieldInfo, EventArgs)

通知呈现器已发生事件。

DispatchEventAsync(UInt64, EventFieldInfo, EventArgs, Boolean)

通知呈现器已发生事件。

DispatchEventAsync(UInt64, EventFieldInfo, EventArgs)

Source:
Renderer.cs
Source:
Renderer.cs
Source:
Renderer.cs
Source:
Renderer.cs
Source:
Renderer.cs
Source:
Renderer.cs
Source:
Renderer.cs

通知呈现器已发生事件。

public:
 virtual System::Threading::Tasks::Task ^ DispatchEventAsync(System::UInt64 eventHandlerId, Microsoft::AspNetCore::Components::RenderTree::EventFieldInfo ^ fieldInfo, EventArgs ^ eventArgs);
public virtual System.Threading.Tasks.Task DispatchEventAsync (ulong eventHandlerId, Microsoft.AspNetCore.Components.RenderTree.EventFieldInfo fieldInfo, EventArgs eventArgs);
public virtual System.Threading.Tasks.Task DispatchEventAsync (ulong eventHandlerId, Microsoft.AspNetCore.Components.RenderTree.EventFieldInfo? fieldInfo, EventArgs eventArgs);
abstract member DispatchEventAsync : uint64 * Microsoft.AspNetCore.Components.RenderTree.EventFieldInfo * EventArgs -> System.Threading.Tasks.Task
override this.DispatchEventAsync : uint64 * Microsoft.AspNetCore.Components.RenderTree.EventFieldInfo * EventArgs -> System.Threading.Tasks.Task
Public Overridable Function DispatchEventAsync (eventHandlerId As ULong, fieldInfo As EventFieldInfo, eventArgs As EventArgs) As Task

参数

eventHandlerId
UInt64

AttributeEventHandlerId原始事件属性中的值。

fieldInfo
EventFieldInfo

呈现器可用于更新现有呈现树的状态以匹配 UI 的信息。

eventArgs
EventArgs

要传递给事件处理程序的参数。

返回

一个 Task ,它将在与事件相关的所有异步处理完成后完成。

适用于

DispatchEventAsync(UInt64, EventFieldInfo, EventArgs, Boolean)

Source:
Renderer.cs
Source:
Renderer.cs

通知呈现器已发生事件。

public virtual System.Threading.Tasks.Task DispatchEventAsync (ulong eventHandlerId, Microsoft.AspNetCore.Components.RenderTree.EventFieldInfo? fieldInfo, EventArgs eventArgs, bool waitForQuiescence);
abstract member DispatchEventAsync : uint64 * Microsoft.AspNetCore.Components.RenderTree.EventFieldInfo * EventArgs * bool -> System.Threading.Tasks.Task
override this.DispatchEventAsync : uint64 * Microsoft.AspNetCore.Components.RenderTree.EventFieldInfo * EventArgs * bool -> System.Threading.Tasks.Task
Public Overridable Function DispatchEventAsync (eventHandlerId As ULong, fieldInfo As EventFieldInfo, eventArgs As EventArgs, waitForQuiescence As Boolean) As Task

参数

eventHandlerId
UInt64

AttributeEventHandlerId原始事件属性中的值。

fieldInfo
EventFieldInfo

呈现器可用于更新现有呈现树的状态以匹配 UI 的信息。

eventArgs
EventArgs

要传递给事件处理程序的参数。

waitForQuiescence
Boolean

指示是否等待静止的标志。

返回

一个 Task ,它将在与事件相关的所有异步处理完成后完成。

适用于