CommandMapperExtensions.ModifyMapping Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
ModifyMapping<TVirtualView,TViewHandler>(CommandMapper<TVirtualView, TViewHandler>, String, Action<TViewHandler,TVirtualView,Object, Action<IElementHandler,IElement,Object>>) |
Modifique una asignación de comandos en su lugar. |
ModifyMapping<TVirtualView,TViewHandler>(ICommandMapper<IElement, IElementHandler>, String, Action<TViewHandler,TVirtualView,Object, Action<IElementHandler,IElement,Object>>) |
Modifique una asignación de comandos en su lugar, pero llame a la asignación anterior si los tipos no coinciden. |
ModifyMapping<TVirtualView,TViewHandler>(ICommandMapper<TVirtualView, TViewHandler>, String, Action<TViewHandler,TVirtualView,Object, Action<IElementHandler,IElement,Object>>) |
Modifique una asignación de comandos en su lugar. |
ModifyMapping<TVirtualView,TViewHandler>(CommandMapper<TVirtualView, TViewHandler>, String, Action<TViewHandler,TVirtualView,Object, Action<IElementHandler,IElement,Object>>)
- Source:
- CommandMapperExtensions.cs
- Source:
- CommandMapperExtensions.cs
Modifique una asignación de comandos en su lugar.
public:
generic <typename TVirtualView, typename TViewHandler>
where TVirtualView : Microsoft::Maui::IElement where TViewHandler : Microsoft::Maui::IElementHandler[System::Runtime::CompilerServices::Extension]
static void ModifyMapping(Microsoft::Maui::CommandMapper<TVirtualView, TViewHandler> ^ commandMapper, System::String ^ key, Action<TViewHandler, TVirtualView, System::Object ^, Action<Microsoft::Maui::IElementHandler ^, Microsoft::Maui::IElement ^, System::Object ^> ^> ^ method);
public static void ModifyMapping<TVirtualView,TViewHandler> (this Microsoft.Maui.CommandMapper<TVirtualView,TViewHandler> commandMapper, string key, Action<TViewHandler,TVirtualView,object?,Action<Microsoft.Maui.IElementHandler,Microsoft.Maui.IElement,object?>?> method) where TVirtualView : Microsoft.Maui.IElement where TViewHandler : Microsoft.Maui.IElementHandler;
static member ModifyMapping : Microsoft.Maui.CommandMapper<'VirtualView, 'ViewHandler (requires 'VirtualView :> Microsoft.Maui.IElement and 'ViewHandler :> Microsoft.Maui.IElementHandler)> * string * Action<'ViewHandler, 'VirtualView, obj, Action<Microsoft.Maui.IElementHandler, Microsoft.Maui.IElement, obj> (requires 'ViewHandler :> Microsoft.Maui.IElementHandler and 'VirtualView :> Microsoft.Maui.IElement)> -> unit (requires 'VirtualView :> Microsoft.Maui.IElement and 'ViewHandler :> Microsoft.Maui.IElementHandler)
<Extension()>
Public Sub ModifyMapping(Of TVirtualView As IElement, TViewHandler As IElement) (commandMapper As CommandMapper(Of TVirtualView, TViewHandler), key As String, method As Action(Of TViewHandler, TVirtualView, Object, Action(Of IElementHandler, IElement, Object)))
Parámetros de tipo
- TVirtualView
Tipo multiplataforma.
- TViewHandler
Tipo de controlador.
Parámetros
- commandMapper
- CommandMapper<TVirtualView,TViewHandler>
Asignador de comandos en el que se va a cambiar la asignación.
- key
- String
El nombre del comando.
Método modificado al que se va a llamar cuando se actualiza el comando.
Se aplica a
ModifyMapping<TVirtualView,TViewHandler>(ICommandMapper<IElement, IElementHandler>, String, Action<TViewHandler,TVirtualView,Object, Action<IElementHandler,IElement,Object>>)
- Source:
- CommandMapperExtensions.cs
- Source:
- CommandMapperExtensions.cs
Modifique una asignación de comandos en su lugar, pero llame a la asignación anterior si los tipos no coinciden.
public:
generic <typename TVirtualView, typename TViewHandler>
where TVirtualView : Microsoft::Maui::IElement where TViewHandler : Microsoft::Maui::IElementHandler[System::Runtime::CompilerServices::Extension]
static void ModifyMapping(Microsoft::Maui::ICommandMapper<Microsoft::Maui::IElement ^, Microsoft::Maui::IElementHandler ^> ^ commandMapper, System::String ^ key, Action<TViewHandler, TVirtualView, System::Object ^, Action<Microsoft::Maui::IElementHandler ^, Microsoft::Maui::IElement ^, System::Object ^> ^> ^ method);
public static void ModifyMapping<TVirtualView,TViewHandler> (this Microsoft.Maui.ICommandMapper<Microsoft.Maui.IElement,Microsoft.Maui.IElementHandler> commandMapper, string key, Action<TViewHandler,TVirtualView,object?,Action<Microsoft.Maui.IElementHandler,Microsoft.Maui.IElement,object?>?> method) where TVirtualView : Microsoft.Maui.IElement where TViewHandler : Microsoft.Maui.IElementHandler;
static member ModifyMapping : Microsoft.Maui.ICommandMapper<Microsoft.Maui.IElement, Microsoft.Maui.IElementHandler> * string * Action<'ViewHandler, 'VirtualView, obj, Action<Microsoft.Maui.IElementHandler, Microsoft.Maui.IElement, obj> (requires 'ViewHandler :> Microsoft.Maui.IElementHandler and 'VirtualView :> Microsoft.Maui.IElement)> -> unit (requires 'VirtualView :> Microsoft.Maui.IElement and 'ViewHandler :> Microsoft.Maui.IElementHandler)
<Extension()>
Public Sub ModifyMapping(Of TVirtualView As IElement, TViewHandler As IElement) (commandMapper As ICommandMapper(Of IElement, IElementHandler), key As String, method As Action(Of TViewHandler, TVirtualView, Object, Action(Of IElementHandler, IElement, Object)))
Parámetros de tipo
- TVirtualView
Tipo multiplataforma.
- TViewHandler
Tipo de controlador.
Parámetros
- commandMapper
- ICommandMapper<IElement,IElementHandler>
Asignador de comandos en el que se va a cambiar la asignación.
- key
- String
El nombre del comando.
Método modificado al que se va a llamar cuando se actualiza el comando.
Se aplica a
ModifyMapping<TVirtualView,TViewHandler>(ICommandMapper<TVirtualView, TViewHandler>, String, Action<TViewHandler,TVirtualView,Object, Action<IElementHandler,IElement,Object>>)
- Source:
- CommandMapperExtensions.cs
- Source:
- CommandMapperExtensions.cs
Modifique una asignación de comandos en su lugar.
public:
generic <typename TVirtualView, typename TViewHandler>
where TVirtualView : Microsoft::Maui::IElement where TViewHandler : Microsoft::Maui::IElementHandler[System::Runtime::CompilerServices::Extension]
static void ModifyMapping(Microsoft::Maui::ICommandMapper<TVirtualView, TViewHandler> ^ commandMapper, System::String ^ key, Action<TViewHandler, TVirtualView, System::Object ^, Action<Microsoft::Maui::IElementHandler ^, Microsoft::Maui::IElement ^, System::Object ^> ^> ^ method);
public static void ModifyMapping<TVirtualView,TViewHandler> (this Microsoft.Maui.ICommandMapper<TVirtualView,TViewHandler> commandMapper, string key, Action<TViewHandler,TVirtualView,object?,Action<Microsoft.Maui.IElementHandler,Microsoft.Maui.IElement,object?>?> method) where TVirtualView : Microsoft.Maui.IElement where TViewHandler : Microsoft.Maui.IElementHandler;
static member ModifyMapping : Microsoft.Maui.ICommandMapper<'VirtualView, 'ViewHandler (requires 'VirtualView :> Microsoft.Maui.IElement and 'ViewHandler :> Microsoft.Maui.IElementHandler)> * string * Action<'ViewHandler, 'VirtualView, obj, Action<Microsoft.Maui.IElementHandler, Microsoft.Maui.IElement, obj> (requires 'ViewHandler :> Microsoft.Maui.IElementHandler and 'VirtualView :> Microsoft.Maui.IElement)> -> unit (requires 'VirtualView :> Microsoft.Maui.IElement and 'ViewHandler :> Microsoft.Maui.IElementHandler)
<Extension()>
Public Sub ModifyMapping(Of TVirtualView As IElement, TViewHandler As IElement) (commandMapper As ICommandMapper(Of TVirtualView, TViewHandler), key As String, method As Action(Of TViewHandler, TVirtualView, Object, Action(Of IElementHandler, IElement, Object)))
Parámetros de tipo
- TVirtualView
Tipo multiplataforma.
- TViewHandler
Tipo de controlador.
Parámetros
- commandMapper
- ICommandMapper<TVirtualView,TViewHandler>
Asignador de comandos en el que se va a cambiar la asignación.
- key
- String
El nombre del comando.
Método modificado al que se va a llamar cuando se actualiza el comando.