CustomTypeDescriptor.GetProperties Method (Attribute[])

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a filtered collection of property descriptors for the object represented by this type descriptor.

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

public virtual PropertyDescriptorCollection GetProperties(
	Attribute[] attributes
)

Parameters

attributes
Type: System.Attribute[]

An array of attributes to use as a filter. This can be null.

Return Value

Type: System.ComponentModel.PropertyDescriptorCollection

A PropertyDescriptorCollection containing the property descriptions for the object represented by this type descriptor. The default is Empty.

You can use the attributes parameter to filter the collection that is returned. For filtering rules, see GetProperties.

If a parent custom type descriptor was passed into the CustomTypeDescriptor constructor, the GetProperties method will call the parent's corresponding method.

.NET Framework
Available since 2.0
Return to top
Show: