HandlerAttribute 类

定义

一个抽象属性,其子类为 Microsoft.Maui.Controls 抽象控件指定特定于平台的呈现器。

public ref class HandlerAttribute abstract : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
public abstract class HandlerAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)>]
type HandlerAttribute = class
    inherit Attribute
Public MustInherit Class HandlerAttribute
Inherits Attribute
继承
HandlerAttribute
派生
属性

构造函数

HandlerAttribute(Type, Type)

一个抽象属性,其子类为 Microsoft.Maui.Controls 抽象控件指定特定于平台的呈现器。

HandlerAttribute(Type, Type, Type[])

一个抽象属性,其子类为 Microsoft.Maui.Controls 抽象控件指定特定于平台的呈现器。

属性

Priority

一个抽象属性,其子类为 Microsoft.Maui.Controls 抽象控件指定特定于平台的呈现器。

方法

ShouldRegister()

返回一个布尔值,该值指示运行时是否应自动为目标注册处理程序。

适用于