ITypeDescriptorFilterService.FilterAttributes(IComponent, IDictionary) メソッド

定義

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

パラメーター

component
IComponent

属性をフィルター処理する対象のコンポーネント。

attributes
IDictionary

変更できる属性のディクショナリ。

戻り値

フィルター処理した一連の属性をキャッシュに保存する場合は true。フィルター サービスが再照会する必要がある場合は false

注釈

このメソッドは、ユーザーがコンポーネントの属性のセットを要求すると呼び出されます。 属性は、 属性をキーとして、実際の TypeId 属性を値として使用してディクショナリに追加されます。 このサービスの実装者は、ディクショナリ内の既存の属性エントリを追加、削除、または変更できます。

注意 (実装者)

型記述子フィルター サービスに対して繰り返しクエリを実行するとパフォーマンスが低下する可能性があるため、必要な場合にのみ を返 false します。

適用対象

こちらもご覧ください