Export (0) Print
Expand All

PropertyDescriptor.GetChildProperties Method (Attribute[])

Returns a PropertyDescriptorCollection using a specified array of attributes as a filter.

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

public PropertyDescriptorCollection GetChildProperties (
	Attribute[] filter
)
public PropertyDescriptorCollection GetChildProperties (
	Attribute[] filter
)
public function GetChildProperties (
	filter : Attribute[]
) : PropertyDescriptorCollection
Not applicable.

Parameters

filter

An array of type Attribute to use as a filter.

Return Value

A PropertyDescriptorCollection with the properties that match the specified attributes.

This method passes a null reference (Nothing in Visual Basic) for the instance 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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft