PropertyFilterAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定類型描述項應該報告哪些屬性,特別是 GetProperties(Object) 方法。
public ref class PropertyFilterAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Method | System.AttributeTargets.Property)]
public sealed class PropertyFilterAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method | System.AttributeTargets.Property)>]
type PropertyFilterAttribute = class
inherit Attribute
Public NotInheritable Class PropertyFilterAttribute
Inherits Attribute
- 繼承
- 屬性
備註
它 PropertyFilterAttribute 支援一種內部機制,限制自訂 DependencyObject 型別描述符回傳的屬性數量。 若找到該屬性,型別描述符會縮小回傳屬性的範圍。 PropertyFilterAttribute 與一般屬性不同,因為你無法將其套用到類別中作為元資料。 過濾機制是透過程式碼運作,而非靜態元資料。
建構函式
| 名稱 | Description |
|---|---|
| PropertyFilterAttribute(PropertyFilterOptions) |
初始化 PropertyFilterAttribute 類別的新執行個體。 |
欄位
| 名稱 | Description |
|---|---|
| Default |
此成員支援 .NET Framework 基礎架構,並非直接從您的程式碼中使用。 |
屬性
| 名稱 | Description |
|---|---|
| Filter |
取得這個 PropertyFilterAttribute .NET Framework 屬性的篩選選項。 |
| TypeId |
在衍生類別中實作時,取得這個 Attribute的唯一標識碼。 (繼承來源 Attribute) |
方法
| 名稱 | Description |
|---|---|
| Equals(Object) |
回傳一個值,表示目前的 PropertyFilterAttribute .NET Framework 屬性是否等於指定物件。 |
| GetHashCode() |
回傳目前 PropertyFilterAttribute .NET Framework 屬性的雜湊碼。 |
| GetType() |
取得目前實例的 Type。 (繼承來源 Object) |
| IsDefaultAttribute() |
在衍生類別中覆寫時,指出這個實例的值是否為衍生類別的預設值。 (繼承來源 Attribute) |
| Match(Object) |
回傳一個值,表示目前 PropertyFilterAttribute .NET Framework 屬性的屬性篩選選項是否與所提供物件的屬性過濾器選項相符。 |
| 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) |