Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PropertyDescriptor.GetChildProperties Method (Object)

 

Returns a PropertyDescriptorCollection for a given object.

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

public PropertyDescriptorCollection GetChildProperties(
	object instance
)

Parameters

instance
Type: System.Object

A component to get the properties for.

Return Value

Type: System.ComponentModel.PropertyDescriptorCollection

A PropertyDescriptorCollection with the properties for the specified component.

This method passes null for the filter parameter.

The properties for the instance parameter can differ from the properties of a class, because the site 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 instance and it is the default property, it will be included in the returned array even if there is no instance of the Attribute in the property.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft