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, _ ByVal fNoCustomTypeDesc As Boolean _ ) As PropertyDescriptorCollection [C#] public static PropertyDescriptorCollection GetProperties( object component, MemberAttribute[] attributes, bool fNoCustomTypeDesc ); [C++] public: static PropertyDescriptorCollection* GetProperties( Object* component, MemberAttribute* attributes[], bool fNoCustomTypeDesc ); [JScript] public static function GetProperties( component : Object, attributes : MemberAttribute[], fNoCustomTypeDesc : Boolean ) : PropertyDescriptorCollection;
A PropertyDescriptorCollection with the events 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 may 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 | ICustomTypeDescriptor