AttachedPropertyBrowsableWhenAttributePresentAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
規定附加屬性僅能在同時套用另一特定 .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
- 屬性
備註
browsable 在描述此 .NET Framework 屬性時的意義類似於 BrowsableAttribute,但附加屬性的可瀏覽狀態對於可擴充應用標記語言(XAML)的屬性資訊特別相關,因為附加屬性主要是 XAML 的概念。
這個 .NET Framework 屬性應該只套用在附加屬性定義的 get accessor 上。 請勿將此 .NET Framework 屬性套用於該設定的 accessor。 雖然直覺上是讓 XAML 在相關元素上可瀏覽的集合操作,但真正控制行為的是 get accessor 在定義屬性元素上的存在與特性。
關於宣告附加財產的一般資訊,請參閱 附屬財產概述。
建構函式
| 名稱 | Description |
|---|---|
| AttachedPropertyBrowsableWhenAttributePresentAttribute(Type) |
初始化 AttachedPropertyBrowsableWhenAttributePresentAttribute 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| AttributeType |
取得必須套用在類別上的 .NET 屬性類型。 |
| TypeId |
在衍生類別中實作時,取得這個 Attribute的唯一標識碼。 (繼承來源 Attribute) |
方法
| 名稱 | Description |
|---|---|
| Equals(Object) |
判斷目前的 AttachedPropertyBrowsableWhenAttributePresentAttribute .NET Framework 屬性是否等於指定物件。 |
| GetHashCode() |
回傳此 AttachedPropertyBrowsableWhenAttributePresentAttribute .NET Framework 屬性的雜湊碼。 |
| GetType() |
取得目前實例的 Type。 (繼承來源 Object) |
| IsDefaultAttribute() |
在衍生類別中覆寫時,指出這個實例的值是否為衍生類別的預設值。 (繼承來源 Attribute) |
| Match(Object) |
在衍生類別中覆寫時,傳回值,指出這個實例是否等於指定的物件。 (繼承來源 Attribute) |
| MemberwiseClone() |
建立目前 Object的淺層複本。 (繼承來源 Object) |
| ToString() |
傳回表示目前 物件的字串。 (繼承來源 Object) |
明確介面實作
| 名稱 | Description |
|---|---|
| _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) |