語言

RequiresSuperAttribute 類別

定義

此屬性應用於必須呼叫基礎實作的方法,當它們被覆寫時。

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)]
public sealed class RequiresSuperAttribute : Foundation.AdviceAttribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)>]
type RequiresSuperAttribute = class
    inherit AdviceAttribute
繼承
RequiresSuperAttribute
屬性

備註

這是 Clang 的 objc_requires_super 屬性的管理對應,應用於綁定這些原生方法的受管理方法。

建構函式

名稱 Description
RequiresSuperAttribute()

初始化一個新的 RequiresSuper 屬性實例。

屬性

名稱 Description
Message

他會獲得程式設計的建議。

(繼承來源 AdviceAttribute)

適用於