ITypeDescriptorFilterService.FilterAttributes(IComponent, IDictionary) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Filters the attributes that a component exposes through a TypeDescriptor.
public:
bool FilterAttributes(System::ComponentModel::IComponent ^ component, System::Collections::IDictionary ^ attributes);
public bool FilterAttributes (System.ComponentModel.IComponent component, System.Collections.IDictionary attributes);
abstract member FilterAttributes : System.ComponentModel.IComponent * System.Collections.IDictionary -> bool
Public Function FilterAttributes (component As IComponent, attributes As IDictionary) As Boolean
Parameters
- component
- IComponent
The component to filter the attributes of.
- attributes
- IDictionary
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 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.
Notes to Implementers
Return false
only when necessary, because repeated queries to the type descriptor filter service can decrease performance.