PropertyFilterAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies which properties should be reported by type descriptors, specifically the GetProperties(Object) method.
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
- Inheritance
- Attributes
Remarks
The PropertyFilterAttribute supports an internal mechanism that limits the number of properties on a type that are returned by the custom DependencyObject type descriptor. If the attribute is found, the type descriptor narrows the scope of returned properties. PropertyFilterAttribute differs from typical attributes because you cannot apply it to a class as metadata. The filter mechanism works through code instead of through static metadata.
Constructors
| Name | Description |
|---|---|
| PropertyFilterAttribute(PropertyFilterOptions) |
Initializes a new instance of the PropertyFilterAttribute class. |
Fields
| Name | Description |
|---|---|
| Default |
This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
Properties
| Name | Description |
|---|---|
| Filter |
Gets the filter options for this PropertyFilterAttribute .NET Framework attribute. |
Methods
| Name | Description |
|---|---|
| Equals(Object) |
Returns a value that indicates whether the current PropertyFilterAttribute .NET Framework attribute is equal to a specified object. |
| GetHashCode() |
Returns the hash code for the current PropertyFilterAttribute .NET Framework attribute. |
| Match(Object) |
Returns a value that indicates whether the property filter options of the current PropertyFilterAttribute .NET Framework attribute match the property filter options of the provided object. |