AttachedPropertyBrowsableWhenAttributePresentAttribute 類別

定義

指定附加屬性只能在也於其類別定義上套用另一個特定 .NET 屬性的元素上瀏覽。

public ref class AttachedPropertyBrowsableWhenAttributePresentAttribute sealed : System::Windows::AttachedPropertyBrowsableAttribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)]
public sealed class AttachedPropertyBrowsableWhenAttributePresentAttribute : System.Windows.AttachedPropertyBrowsableAttribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)>]
type AttachedPropertyBrowsableWhenAttributePresentAttribute = class
    inherit AttachedPropertyBrowsableAttribute
Public NotInheritable Class AttachedPropertyBrowsableWhenAttributePresentAttribute
Inherits AttachedPropertyBrowsableAttribute
繼承
AttachedPropertyBrowsableWhenAttributePresentAttribute
屬性

備註

這個.NET Framework屬性的描述中使用的詞彙 browsable 意義類似于 提供 BrowsableAttribute 的描述,但是附加屬性的可流覽狀態與可延伸應用程式標記語言的屬性資訊特別相關, (XAML) ,因為附加屬性主要是 XAML 概念。

這個.NET Framework屬性應該只套用至附加屬性定義的 get 存取子上。 請勿將此.NET Framework屬性套用至 set 存取子。 雖然以直覺方式是讓相關元素上 XAML 可流覽的設定作業,但它是屬性上 get 存取子的存在和特性,可控制真實行為。

如需宣告附加屬性的一般資訊,請參閱 附加屬性概觀

建構函式

AttachedPropertyBrowsableWhenAttributePresentAttribute(Type)

初始化 AttachedPropertyBrowsableWhenAttributePresentAttribute 類別的新執行個體。

屬性

AttributeType

取得也必須在類別上套用之.NET Framework屬性的類型。

TypeId

在衍生類別中實作時,取得這個 Attribute 的唯一識別碼。

(繼承來源 Attribute)

方法

Equals(Object)

判斷目前的 AttachedPropertyBrowsableWhenAttributePresentAttribute .NET Framework屬性是否等於指定的物件。

GetHashCode()

傳回這個 AttachedPropertyBrowsableWhenAttributePresentAttribute .NET Framework屬性的雜湊碼。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
IsDefaultAttribute()

在衍生類別中覆寫時,表示這個執行個體的值是衍生類別的預設值。

(繼承來源 Attribute)
Match(Object)

在衍生類別中覆寫時,會傳回值,表示這個執行個體是否等於指定物件。

(繼承來源 Attribute)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

將一組名稱對應至一組對應的分派識別項 (Dispatch Identifier)。

(繼承來源 Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

擷取物件的類型資訊,可以用來取得介面的類型資訊。

(繼承來源 Attribute)
_Attribute.GetTypeInfoCount(UInt32)

擷取物件提供的類型資訊介面數目 (0 或 1)。

(繼承來源 Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

提供物件所公開的屬性和方法的存取權。

(繼承來源 Attribute)

適用於