Partager via


PropertyMapperExtensions.PrependToMapping Méthode

Définition

Surcharges

PrependToMapping<TVirtualView,TViewHandler>(IPropertyMapper<IElement,IElementHandler>, String, Action<TViewHandler,TVirtualView>)

Spécifiez une méthode à exécuter avant un mappage de propriétés existant, mais ignorez si les types ne correspondent pas.

PrependToMapping<TVirtualView,TViewHandler>(IPropertyMapper<TVirtualView,TViewHandler>, String, Action<TViewHandler,TVirtualView>)

Spécifiez une méthode à exécuter avant un mappage de propriétés existant.

PrependToMapping<TVirtualView,TViewHandler>(IPropertyMapper<IElement,IElementHandler>, String, Action<TViewHandler,TVirtualView>)

Spécifiez une méthode à exécuter avant un mappage de propriétés existant, mais ignorez si les types ne correspondent pas.

public:
generic <typename TVirtualView, typename TViewHandler>
 where TVirtualView : Microsoft::Maui::IElement where TViewHandler : Microsoft::Maui::IElementHandler[System::Runtime::CompilerServices::Extension]
 static void PrependToMapping(Microsoft::Maui::IPropertyMapper<Microsoft::Maui::IElement ^, Microsoft::Maui::IElementHandler ^> ^ propertyMapper, System::String ^ key, Action<TViewHandler, TVirtualView> ^ method);
public static void PrependToMapping<TVirtualView,TViewHandler> (this Microsoft.Maui.IPropertyMapper<Microsoft.Maui.IElement,Microsoft.Maui.IElementHandler> propertyMapper, string key, Action<TViewHandler,TVirtualView> method) where TVirtualView : Microsoft.Maui.IElement where TViewHandler : Microsoft.Maui.IElementHandler;
static member PrependToMapping : Microsoft.Maui.IPropertyMapper<Microsoft.Maui.IElement, Microsoft.Maui.IElementHandler> * string * Action<'ViewHandler, 'VirtualView (requires 'ViewHandler :> Microsoft.Maui.IElementHandler and 'VirtualView :> Microsoft.Maui.IElement)> -> unit (requires 'VirtualView :> Microsoft.Maui.IElement and 'ViewHandler :> Microsoft.Maui.IElementHandler)
<Extension()>
Public Sub PrependToMapping(Of TVirtualView As IElement, TViewHandler As IElement) (propertyMapper As IPropertyMapper(Of IElement, IElementHandler), key As String, method As Action(Of TViewHandler, TVirtualView))

Paramètres de type

TVirtualView

Type multiplateforme.

TViewHandler

Type de gestionnaire.

Paramètres

propertyMapper
IPropertyMapper<IElement,IElementHandler>

Mappeur de propriétés dans lequel modifier le mappage.

key
String

Nom de la propriété.

method
Action<TViewHandler,TVirtualView>

Méthode à appeler avant le début du mappage existant.

S’applique à

PrependToMapping<TVirtualView,TViewHandler>(IPropertyMapper<TVirtualView,TViewHandler>, String, Action<TViewHandler,TVirtualView>)

Spécifiez une méthode à exécuter avant un mappage de propriétés existant.

public:
generic <typename TVirtualView, typename TViewHandler>
 where TVirtualView : Microsoft::Maui::IElement where TViewHandler : Microsoft::Maui::IElementHandler[System::Runtime::CompilerServices::Extension]
 static void PrependToMapping(Microsoft::Maui::IPropertyMapper<TVirtualView, TViewHandler> ^ propertyMapper, System::String ^ key, Action<TViewHandler, TVirtualView> ^ method);
public static void PrependToMapping<TVirtualView,TViewHandler> (this Microsoft.Maui.IPropertyMapper<TVirtualView,TViewHandler> propertyMapper, string key, Action<TViewHandler,TVirtualView> method) where TVirtualView : Microsoft.Maui.IElement where TViewHandler : Microsoft.Maui.IElementHandler;
static member PrependToMapping : Microsoft.Maui.IPropertyMapper<'VirtualView, 'ViewHandler (requires 'VirtualView :> Microsoft.Maui.IElement and 'ViewHandler :> Microsoft.Maui.IElementHandler)> * string * Action<'ViewHandler, 'VirtualView (requires 'ViewHandler :> Microsoft.Maui.IElementHandler and 'VirtualView :> Microsoft.Maui.IElement)> -> unit (requires 'VirtualView :> Microsoft.Maui.IElement and 'ViewHandler :> Microsoft.Maui.IElementHandler)
<Extension()>
Public Sub PrependToMapping(Of TVirtualView As IElement, TViewHandler As IElement) (propertyMapper As IPropertyMapper(Of TVirtualView, TViewHandler), key As String, method As Action(Of TViewHandler, TVirtualView))

Paramètres de type

TVirtualView

Type multiplateforme.

TViewHandler

Type de gestionnaire.

Paramètres

propertyMapper
IPropertyMapper<TVirtualView,TViewHandler>

Mappeur de propriétés dans lequel modifier le mappage.

key
String

Nom de la propriété.

method
Action<TViewHandler,TVirtualView>

Méthode à appeler avant le début du mappage existant.

S’applique à