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

定義

TypeDescriptor を通じてコンポーネントが公開するプロパティをフィルター処理します。

public:
 bool FilterProperties(System::ComponentModel::IComponent ^ component, System::Collections::IDictionary ^ properties);
public bool FilterProperties (System.ComponentModel.IComponent component, System.Collections.IDictionary properties);
abstract member FilterProperties : System.ComponentModel.IComponent * System.Collections.IDictionary -> bool
Public Function FilterProperties (component As IComponent, properties As IDictionary) As Boolean

パラメーター

component
IComponent

プロパティをフィルター処理する対象のコンポーネント。

properties
IDictionary

変更できるプロパティのディクショナリ。

戻り値

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

注釈

このメソッドは、ユーザーがコンポーネントのプロパティのセットを要求するときに呼び出されます。 プロパティがディクショナリに追加され、プロパティ名がキーとして、対応する PropertyDescriptor オブジェクトが値として追加されます。 このサービスの実装者は、ディクショナリ内のプロパティ エントリを追加、削除、または変更できます。

注意 (実装者)

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

適用対象

こちらもご覧ください