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.FilterProperties

Provides a way to filter the properties from a component that are displayed to the user.

[Visual Basic]
Function FilterProperties( _
   ByVal component As IComponent, _
   ByVal properties As IDictionary _
) As Boolean
[C#]
bool FilterProperties(
   IComponent component,
   IDictionary properties
);
[C++]
bool FilterProperties(
   IComponent* component,
   IDictionary* properties
) = 0;
[JScript]
function FilterProperties(
   component : IComponent,
   properties : IDictionary
) : Boolean;

Parameters

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

Return Value

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

Remarks

This method is called when a user requests a set of properties for a component. The properties will be added to the dictionary with the property names as the keys. Implementers of this service may make changes, add, or remove properties 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