EventCallbackFactoryEventArgsExtensions.Create 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Create(EventCallbackFactory, Object, Action<ChangeEventArgs>) |
EventCallback為提供的 |
Create(EventCallbackFactory, Object, Action<EventArgs>) |
EventCallback為提供的 |
Create(EventCallbackFactory, Object, Func<ChangeEventArgs,Task>) |
EventCallback為提供的 |
Create(EventCallbackFactory, Object, Func<EventArgs,Task>) |
EventCallback為提供的 |
Create(EventCallbackFactory, Object, Action<ChangeEventArgs>)
EventCallback為提供的 receiver
和 callback
建立 。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Components::EventCallback<Microsoft::AspNetCore::Components::ChangeEventArgs ^> Create(Microsoft::AspNetCore::Components::EventCallbackFactory ^ factory, System::Object ^ receiver, Action<Microsoft::AspNetCore::Components::ChangeEventArgs ^> ^ callback);
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);
static member Create : Microsoft.AspNetCore.Components.EventCallbackFactory * obj * Action<Microsoft.AspNetCore.Components.ChangeEventArgs> -> Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.ChangeEventArgs>
<Extension()>
Public Function Create (factory As EventCallbackFactory, receiver As Object, callback As Action(Of ChangeEventArgs)) As EventCallback(Of ChangeEventArgs)
參數
- factory
- EventCallbackFactory
- receiver
- Object
事件接收器。
- callback
- Action<ChangeEventArgs>
事件回呼。
傳回
適用於
Create(EventCallbackFactory, Object, Action<EventArgs>)
EventCallback為提供的 receiver
和 callback
建立 。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Components::EventCallback<EventArgs ^> Create(Microsoft::AspNetCore::Components::EventCallbackFactory ^ factory, System::Object ^ receiver, Action<EventArgs ^> ^ callback);
public static Microsoft.AspNetCore.Components.EventCallback<EventArgs> Create (this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, Action<EventArgs> callback);
static member Create : Microsoft.AspNetCore.Components.EventCallbackFactory * obj * Action<EventArgs> -> Microsoft.AspNetCore.Components.EventCallback<EventArgs>
<Extension()>
Public Function Create (factory As EventCallbackFactory, receiver As Object, callback As Action(Of EventArgs)) As EventCallback(Of EventArgs)
參數
- factory
- EventCallbackFactory
- receiver
- Object
事件接收器。
傳回
適用於
Create(EventCallbackFactory, Object, Func<ChangeEventArgs,Task>)
EventCallback為提供的 receiver
和 callback
建立 。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Components::EventCallback<Microsoft::AspNetCore::Components::ChangeEventArgs ^> Create(Microsoft::AspNetCore::Components::EventCallbackFactory ^ factory, System::Object ^ receiver, Func<Microsoft::AspNetCore::Components::ChangeEventArgs ^, System::Threading::Tasks::Task ^> ^ callback);
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);
static member Create : Microsoft.AspNetCore.Components.EventCallbackFactory * obj * Func<Microsoft.AspNetCore.Components.ChangeEventArgs, System.Threading.Tasks.Task> -> Microsoft.AspNetCore.Components.EventCallback<Microsoft.AspNetCore.Components.ChangeEventArgs>
<Extension()>
Public Function Create (factory As EventCallbackFactory, receiver As Object, callback As Func(Of ChangeEventArgs, Task)) As EventCallback(Of ChangeEventArgs)
參數
- factory
- EventCallbackFactory
- receiver
- Object
事件接收器。
- callback
- Func<ChangeEventArgs,Task>
事件回呼。
傳回
適用於
Create(EventCallbackFactory, Object, Func<EventArgs,Task>)
EventCallback為提供的 receiver
和 callback
建立 。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Components::EventCallback<EventArgs ^> Create(Microsoft::AspNetCore::Components::EventCallbackFactory ^ factory, System::Object ^ receiver, Func<EventArgs ^, System::Threading::Tasks::Task ^> ^ callback);
public static Microsoft.AspNetCore.Components.EventCallback<EventArgs> Create (this Microsoft.AspNetCore.Components.EventCallbackFactory factory, object receiver, Func<EventArgs,System.Threading.Tasks.Task> callback);
static member Create : Microsoft.AspNetCore.Components.EventCallbackFactory * obj * Func<EventArgs, System.Threading.Tasks.Task> -> Microsoft.AspNetCore.Components.EventCallback<EventArgs>
<Extension()>
Public Function Create (factory As EventCallbackFactory, receiver As Object, callback As Func(Of EventArgs, Task)) As EventCallback(Of EventArgs)
參數
- factory
- EventCallbackFactory
- receiver
- Object
事件接收器。