EventCallbackFactory.Create 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Create(Object, EventCallback) |
傳回提供的 |
Create(Object, Action) |
EventCallback為提供的 |
Create(Object, Action<Object>) |
EventCallback為提供的 |
Create(Object, Func<Object,Task>) |
EventCallback為提供的 |
Create(Object, Func<Task>) |
EventCallback為提供的 |
Create<TValue>(Object, EventCallback) |
傳回提供的 |
Create<TValue>(Object, EventCallback<TValue>) |
傳回提供的 |
Create<TValue>(Object, Action) |
EventCallback為提供的 |
Create<TValue>(Object, Action<TValue>) |
EventCallback為提供的 |
Create<TValue>(Object, Func<Task>) |
EventCallback為提供的 |
Create<TValue>(Object, Func<TValue,Task>) |
EventCallback為提供的 |
Create(Object, EventCallback)
傳回提供的 callback
。 僅供內部架構使用。
public:
Microsoft::AspNetCore::Components::EventCallback Create(System::Object ^ receiver, Microsoft::AspNetCore::Components::EventCallback callback);
public Microsoft.AspNetCore.Components.EventCallback Create (object receiver, Microsoft.AspNetCore.Components.EventCallback callback);
member this.Create : obj * Microsoft.AspNetCore.Components.EventCallback -> Microsoft.AspNetCore.Components.EventCallback
Public Function Create (receiver As Object, callback As EventCallback) As EventCallback
參數
- receiver
- Object
- callback
- EventCallback
傳回
適用於
Create(Object, Action)
EventCallback為提供的 receiver
和 callback
建立 。
public:
Microsoft::AspNetCore::Components::EventCallback Create(System::Object ^ receiver, Action ^ callback);
public Microsoft.AspNetCore.Components.EventCallback Create (object receiver, Action callback);
member this.Create : obj * Action -> Microsoft.AspNetCore.Components.EventCallback
Public Function Create (receiver As Object, callback As Action) As EventCallback
參數
- receiver
- Object
事件接收器。
- callback
- Action
事件回呼。
傳回
適用於
Create(Object, Action<Object>)
EventCallback為提供的 receiver
和 callback
建立 。
public:
Microsoft::AspNetCore::Components::EventCallback Create(System::Object ^ receiver, Action<System::Object ^> ^ callback);
public Microsoft.AspNetCore.Components.EventCallback Create (object receiver, Action<object> callback);
member this.Create : obj * Action<obj> -> Microsoft.AspNetCore.Components.EventCallback
Public Function Create (receiver As Object, callback As Action(Of Object)) As EventCallback
參數
- receiver
- Object
事件接收器。
傳回
適用於
Create(Object, Func<Object,Task>)
EventCallback為提供的 receiver
和 callback
建立 。
public:
Microsoft::AspNetCore::Components::EventCallback Create(System::Object ^ receiver, Func<System::Object ^, System::Threading::Tasks::Task ^> ^ callback);
public Microsoft.AspNetCore.Components.EventCallback Create (object receiver, Func<object,System.Threading.Tasks.Task> callback);
member this.Create : obj * Func<obj, System.Threading.Tasks.Task> -> Microsoft.AspNetCore.Components.EventCallback
Public Function Create (receiver As Object, callback As Func(Of Object, Task)) As EventCallback
參數
- receiver
- Object
事件接收器。
傳回
適用於
Create(Object, Func<Task>)
EventCallback為提供的 receiver
和 callback
建立 。
public:
Microsoft::AspNetCore::Components::EventCallback Create(System::Object ^ receiver, Func<System::Threading::Tasks::Task ^> ^ callback);
public Microsoft.AspNetCore.Components.EventCallback Create (object receiver, Func<System.Threading.Tasks.Task> callback);
member this.Create : obj * Func<System.Threading.Tasks.Task> -> Microsoft.AspNetCore.Components.EventCallback
Public Function Create (receiver As Object, callback As Func(Of Task)) As EventCallback
參數
- receiver
- Object
事件接收器。
傳回
適用於
Create<TValue>(Object, EventCallback)
傳回提供的 callback
。 僅供內部架構使用。
public:
generic <typename TValue>
Microsoft::AspNetCore::Components::EventCallback<TValue> Create(System::Object ^ receiver, Microsoft::AspNetCore::Components::EventCallback callback);
public Microsoft.AspNetCore.Components.EventCallback<TValue> Create<TValue> (object receiver, Microsoft.AspNetCore.Components.EventCallback callback);
member this.Create : obj * Microsoft.AspNetCore.Components.EventCallback -> Microsoft.AspNetCore.Components.EventCallback<'Value>
Public Function Create(Of TValue) (receiver As Object, callback As EventCallback) As EventCallback(Of TValue)
類型參數
- TValue
參數
- receiver
- Object
- callback
- EventCallback
傳回
適用於
Create<TValue>(Object, EventCallback<TValue>)
傳回提供的 callback
。 僅供內部架構使用。
public:
generic <typename TValue>
Microsoft::AspNetCore::Components::EventCallback<TValue> Create(System::Object ^ receiver, Microsoft::AspNetCore::Components::EventCallback<TValue> callback);
public Microsoft.AspNetCore.Components.EventCallback<TValue> Create<TValue> (object receiver, Microsoft.AspNetCore.Components.EventCallback<TValue> callback);
member this.Create : obj * Microsoft.AspNetCore.Components.EventCallback<'Value> -> Microsoft.AspNetCore.Components.EventCallback<'Value>
Public Function Create(Of TValue) (receiver As Object, callback As EventCallback(Of TValue)) As EventCallback(Of TValue)
類型參數
- TValue
參數
- receiver
- Object
- callback
- EventCallback<TValue>
傳回
適用於
Create<TValue>(Object, Action)
EventCallback為提供的 receiver
和 callback
建立 。
public:
generic <typename TValue>
Microsoft::AspNetCore::Components::EventCallback<TValue> Create(System::Object ^ receiver, Action ^ callback);
public Microsoft.AspNetCore.Components.EventCallback<TValue> Create<TValue> (object receiver, Action callback);
member this.Create : obj * Action -> Microsoft.AspNetCore.Components.EventCallback<'Value>
Public Function Create(Of TValue) (receiver As Object, callback As Action) As EventCallback(Of TValue)
類型參數
- TValue
參數
- receiver
- Object
事件接收器。
- callback
- Action
事件回呼。
傳回
適用於
Create<TValue>(Object, Action<TValue>)
EventCallback為提供的 receiver
和 callback
建立 。
public:
generic <typename TValue>
Microsoft::AspNetCore::Components::EventCallback<TValue> Create(System::Object ^ receiver, Action<TValue> ^ callback);
public Microsoft.AspNetCore.Components.EventCallback<TValue> Create<TValue> (object receiver, Action<TValue> callback);
member this.Create : obj * Action<'Value> -> Microsoft.AspNetCore.Components.EventCallback<'Value>
Public Function Create(Of TValue) (receiver As Object, callback As Action(Of TValue)) As EventCallback(Of TValue)
類型參數
- TValue
參數
- receiver
- Object
事件接收器。
- callback
- Action<TValue>
事件回呼。
傳回
適用於
Create<TValue>(Object, Func<Task>)
EventCallback為提供的 receiver
和 callback
建立 。
public:
generic <typename TValue>
Microsoft::AspNetCore::Components::EventCallback<TValue> Create(System::Object ^ receiver, Func<System::Threading::Tasks::Task ^> ^ callback);
public Microsoft.AspNetCore.Components.EventCallback<TValue> Create<TValue> (object receiver, Func<System.Threading.Tasks.Task> callback);
member this.Create : obj * Func<System.Threading.Tasks.Task> -> Microsoft.AspNetCore.Components.EventCallback<'Value>
Public Function Create(Of TValue) (receiver As Object, callback As Func(Of Task)) As EventCallback(Of TValue)
類型參數
- TValue
參數
- receiver
- Object
事件接收器。
傳回
適用於
Create<TValue>(Object, Func<TValue,Task>)
EventCallback為提供的 receiver
和 callback
建立 。
public:
generic <typename TValue>
Microsoft::AspNetCore::Components::EventCallback<TValue> Create(System::Object ^ receiver, Func<TValue, System::Threading::Tasks::Task ^> ^ callback);
public Microsoft.AspNetCore.Components.EventCallback<TValue> Create<TValue> (object receiver, Func<TValue,System.Threading.Tasks.Task> callback);
member this.Create : obj * Func<'Value, System.Threading.Tasks.Task> -> Microsoft.AspNetCore.Components.EventCallback<'Value>
Public Function Create(Of TValue) (receiver As Object, callback As Func(Of TValue, Task)) As EventCallback(Of TValue)
類型參數
- TValue
參數
- receiver
- Object
事件接收器。