ITypeDescriptorFilterService.FilterProperties(IComponent, IDictionary) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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
します。
適用対象
こちらもご覧ください
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET