PropertyMapperExtensions.AppendToMapping 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AppendToMapping<TVirtualView,TViewHandler>(IPropertyMapper<IElement,IElementHandler>, String, Action<TViewHandler,TVirtualView>)
- Source:
- PropertyMapperExtensions.cs
- Source:
- PropertyMapperExtensions.cs
指定要在现有属性映射之后运行的方法,但如果类型不匹配,则跳过。
public:
generic <typename TVirtualView, typename TViewHandler>
where TVirtualView : Microsoft::Maui::IElement where TViewHandler : Microsoft::Maui::IElementHandler[System::Runtime::CompilerServices::Extension]
static void AppendToMapping(Microsoft::Maui::IPropertyMapper<Microsoft::Maui::IElement ^, Microsoft::Maui::IElementHandler ^> ^ propertyMapper, System::String ^ key, Action<TViewHandler, TVirtualView> ^ method);
public static void AppendToMapping<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 AppendToMapping : 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 AppendToMapping(Of TVirtualView As IElement, TViewHandler As IElement) (propertyMapper As IPropertyMapper(Of IElement, IElementHandler), key As String, method As Action(Of TViewHandler, TVirtualView))
类型参数
- TVirtualView
跨平台类型。
- TViewHandler
处理程序类型。
参数
- propertyMapper
- IPropertyMapper<IElement,IElementHandler>
要在其中更改映射的属性映射器。
- key
- String
属性的名称。
- method
- Action<TViewHandler,TVirtualView>
完成现有映射后要调用的方法。
适用于
AppendToMapping<TVirtualView,TViewHandler>(IPropertyMapper<TVirtualView,TViewHandler>, String, Action<TViewHandler,TVirtualView>)
- Source:
- PropertyMapperExtensions.cs
- Source:
- PropertyMapperExtensions.cs
指定要在现有属性映射之后运行的方法。
public:
generic <typename TVirtualView, typename TViewHandler>
where TVirtualView : Microsoft::Maui::IElement where TViewHandler : Microsoft::Maui::IElementHandler[System::Runtime::CompilerServices::Extension]
static void AppendToMapping(Microsoft::Maui::IPropertyMapper<TVirtualView, TViewHandler> ^ propertyMapper, System::String ^ key, Action<TViewHandler, TVirtualView> ^ method);
public static void AppendToMapping<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 AppendToMapping : 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 AppendToMapping(Of TVirtualView As IElement, TViewHandler As IElement) (propertyMapper As IPropertyMapper(Of TVirtualView, TViewHandler), key As String, method As Action(Of TViewHandler, TVirtualView))
类型参数
- TVirtualView
跨平台类型。
- TViewHandler
处理程序类型。
参数
- propertyMapper
- IPropertyMapper<TVirtualView,TViewHandler>
要在其中更改映射的属性映射器。
- key
- String
属性的名称。
- method
- Action<TViewHandler,TVirtualView>
完成现有映射后要调用的方法。