NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ITypeDescriptorFilterService.FilterAttributes

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;

Parameters

component
The component to filter attributes for.
attributes
A dictionary of attributes. Modifications to this dictionary may be made in place.

Return Value

The service should return true if the resulting set of filtered attributes can be cached; false if the filter service should be re-queried.

Remarks

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.

See Also

ITypeDescriptorFilterService Interface | ITypeDescriptorFilterService Members | System.ComponentModel.Design Namespace