共用方式為


Renderer.DispatchEventAsync 方法

定義

多載

DispatchEventAsync(UInt64, EventFieldInfo, EventArgs)

通知轉譯器已發生事件。

DispatchEventAsync(UInt64, EventFieldInfo, EventArgs, Boolean)

通知轉譯器已發生事件。

DispatchEventAsync(UInt64, EventFieldInfo, EventArgs)

來源:
Renderer.cs
來源:
Renderer.cs
來源:
Renderer.cs
來源:
Renderer.cs
來源:
Renderer.cs
來源:
Renderer.cs
來源:
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)

來源:
Renderer.cs
來源:
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 一旦與事件相關的所有非同步處理完成,就會完成。

適用於