Export (0) Print
Expand All

PropertyDescriptor.GetChildProperties Method

Returns the default PropertyDescriptorCollection.

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

public PropertyDescriptorCollection GetChildProperties()

Return Value

Type: System.ComponentModel.PropertyDescriptorCollection
A collection of property descriptor.

This method passes null for both the instance parameter and the filter parameter.

The properties for the instance parameter can differ from the properties of a class, because the container can add or remove properties if the instance parameter is sited.

The filter parameter can mix Type and Attribute objects. Filtering is defined by the following rules:

  • A Type object is treated as a wildcard; it matches any property that has the Type in its set of attributes.

  • If a property does not have an Attribute of the same class, the property will not be included in the returned array.

  • If the attribute is an instance of Attribute, the property must be an exact match to be included in the returned array.

  • If you specify an Attribute and it is the default property, it will be included in the returned array, even if there is no instance of Attribute in the property.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft