Gets a collection of properties for a specified component using a specified array of attributes
as a filter.
[Visual Basic] Overloads Public Shared Function GetProperties( _ ByVal component As Object, _ ByVal attributes() As MemberAttribute _ ) As PropertyDescriptorCollection [C#] public static PropertyDescriptorCollection GetProperties( object component, MemberAttribute[] attributes ); [C++] public: static PropertyDescriptorCollection* GetProperties( Object* component, MemberAttribute* attributes[] ); [JScript] public static function GetProperties( component : Object, attributes : MemberAttribute[] ) : PropertyDescriptorCollection;
A PropertyDescriptorCollection with the properties that match the specified attributes for the specified component.
The properties for a component can differ from the properties of a class, because if the component is sited, the site can add or remove properties.
The attributes array can have a mix of Type and MemberAttribute objects. Filtering is defined by the following rules:
TypeDescriptor Class | TypeDescriptor Members | System.ComponentModel Namespace | TypeDescriptor.GetProperties Overload List | TypeDescriptor | EventDescriptor | PropertyDescriptor | PropertyDescriptorCollection | MemberAttribute