ICommandMapper<TVirtualView,TViewHandler>.Add 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Add(String, Action<TViewHandler,TVirtualView,Object>) | |
Add(String, Action<TViewHandler,TVirtualView>) |
Add(String, Action<TViewHandler,TVirtualView,Object>)
public:
void Add(System::String ^ key, Action<TViewHandler, TVirtualView, System::Object ^> ^ action);
public void Add (string key, Action<out TViewHandler,out TVirtualView,object?> action);
abstract member Add : string * Action<'ViewHandler, 'VirtualView, obj (requires 'ViewHandler :> Microsoft.Maui.IElementHandler and 'VirtualView :> Microsoft.Maui.IElement)> -> unit
Public Sub Add (key As String, action As Action(Of Out TViewHandler, Out TVirtualView, Object))
參數
- key
- String
適用於
Add(String, Action<TViewHandler,TVirtualView>)
public:
void Add(System::String ^ key, Action<TViewHandler, TVirtualView> ^ action);
public void Add (string key, Action<out TViewHandler,out TVirtualView> action);
abstract member Add : string * Action<'ViewHandler, 'VirtualView (requires 'ViewHandler :> Microsoft.Maui.IElementHandler and 'VirtualView :> Microsoft.Maui.IElement)> -> unit
Public Sub Add (key As String, action As Action(Of Out TViewHandler, Out TVirtualView))
參數
- key
- String
- action
- Action<TViewHandler,TVirtualView>