Export (0) Print
Expand All
Expand Minimize

PropertyFilterOptions Enumeration

Specifies which properties should be reported by type descriptors, specifically the GetProperties method. This enumeration is used to specify the value of the PropertyFilterAttribute.Filter property.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.ComponentModel
Assembly:  WindowsBase (in WindowsBase.dll)

[FlagsAttribute]
public enum PropertyFilterOptions
<object property="enumerationMemberName" .../>

Member nameDescription
AllReturn all properties.
InvalidReturn only those properties that are not valid given the current context of the object. See Remarks.
NoneReturn no properties
SetValuesReturn only those properties that have local values currently set.
UnsetValuesReturn only those properties whose local values are not set, or do not have properties set in an external expression store (such as binding or deferred resource).
ValidReturn any property that is valid on the object in the current scope. See Remarks.

This filter mechanism is only implemented by the custom DependencyPropertyDescriptor for DependencyObject.

Invalid and Valid are relevant only for attached properties. The validity of a property is determined by working with the following attributes: AttachedPropertyBrowsableForChildrenAttribute , AttachedPropertyBrowsableForTypeAttribute, AttachedPropertyBrowsableWhenAttributePresentAttribute which define the intended scope of the attached property in the object tree once the XAML is loaded. Designer applications that populate property grids and include attached properties in the grid must examine the value or presence of these attributes and the relative position of the current element versus either a parent or child element that "owns" the attached property. The owner-setter relationship together with the attribute values and PropertyFilterOptions will define whether a given attached property that is set on an element is valid or invalid.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft