IMauiHandlersFactory.GetHandler 方法

定义

重载

GetHandler(Type)
GetHandler<T>()

GetHandler(Type)

public:
 Microsoft::Maui::IElementHandler ^ GetHandler(Type ^ type);
public Microsoft.Maui.IElementHandler? GetHandler (Type type);
abstract member GetHandler : Type -> Microsoft.Maui.IElementHandler
Public Function GetHandler (type As Type) As IElementHandler

参数

type
Type

返回

适用于

GetHandler<T>()

public:
generic <typename T>
 where T : Microsoft::Maui::IElement Microsoft::Maui::IElementHandler ^ GetHandler();
public Microsoft.Maui.IElementHandler? GetHandler<T> () where T : Microsoft.Maui.IElement;
abstract member GetHandler : unit -> Microsoft.Maui.IElementHandler (requires 'T :> Microsoft.Maui.IElement)
Public Function GetHandler(Of T As IElement) () As IElementHandler

类型参数

T

返回

适用于