System.ComponentModel.Design.ITypeDescriptorFilterService.FilterAttributes Method

Filters the attributes that a component exposes through a System.ComponentModel.TypeDescriptor.

Syntax

public bool FilterAttributes (System.ComponentModel.IComponent component, IDictionary attributes)

Parameters

component
The component to filter the attributes of.
attributes
A dictionary of attributes that can be modified.

Returns

true if the set of filtered attributes is to be cached; false if the filter service must query again.

Remarks

This method is called when a user requests a set of attributes for a component. The attributes are added to the dictionary with the attribute's Attribute.TypeId as the keys and the actual attribute as the value. Implementers of this service can add, remove, or alter existing attribute entries in the dictionary.

Requirements

Namespace: System.ComponentModel.Design
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0