Provides a way to filter the attributes from a component that are displayed to the user.
[Visual Basic] Function FilterAttributes( _ ByVal component As IComponent, _ ByVal attributes As IDictionary _ ) As Boolean [C#] bool FilterAttributes( IComponent component, IDictionary attributes ); [C++] bool FilterAttributes( IComponent* component, IDictionary* attributes ) = 0; [JScript] function FilterAttributes( component : IComponent, attributes : IDictionary ) : Boolean;
The service should return true if the resulting set of filtered attributes can be cached; false if the filter service should be re-queried.
This method is called when a user requests a set of attributes for a component. The attributes will be added to the dictionary with the attribute type ID as the keys. Implementers of this service may make changes, add, or remove attributes in the dictionary.
Notes to Implementers: Return false only when absolutely necessary, as it impacts performance.
ITypeDescriptorFilterService Interface | ITypeDescriptorFilterService Members | System.ComponentModel.Design Namespace