HandlerAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一個抽象屬性,其子類別指定 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() |
回傳一個布林值,指示執行時是否應該自動註冊目標的處理器。 |