語言

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
衍生
屬性

建構函式

名稱 Description
HandlerAttribute(Type, Type, Type[])

一個抽象屬性,其子類別指定 Microsoft.Maui.Controls 的平台專屬渲染器。

HandlerAttribute(Type, Type)

一個抽象屬性,其子類別指定 Microsoft.Maui.Controls 的平台專屬渲染器。

屬性

名稱 Description
Priority

取得或設定此處理器註冊的優先權。

方法

名稱 Description
ShouldRegister()

回傳一個布林值,指示執行時是否應該自動註冊目標的處理器。

適用於