CustomTypeDescriptor.GetProperties Method (Attribute[])

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
)
public PropertyDescriptorCollection GetProperties (
	Attribute[] attributes
)
public function GetProperties (
	attributes : Attribute[]
) : PropertyDescriptorCollection
Not applicable.

Parameters

attributes

An array of attributes to use as a filter. This can be a null reference (Nothing in Visual Basic).

Return Value

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.

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

Community Additions

ADD
Show: