TypeDescriptor を通じてコンポーネントが公開する属性をフィルタ処理します。
Function FilterAttributes( _
ByVal component As IComponent, _ ByVal attributes As IDictionary _) As Boolean
[C#]
bool FilterAttributes(
IComponentcomponent,IDictionaryattributes);
[C++]
bool FilterAttributes(
IComponent* component,IDictionary* attributes);
[JScript]
function FilterAttributes(
component : IComponent,attributes : IDictionary) : Boolean;
パラメータ
- component
属性をフィルタ処理する対象のコンポーネント。 - attributes
変更できる属性のディクショナリ。
戻り値
フィルタ処理した一連の属性をキャッシュに保存する場合は true 。フィルタ サービスが再照会する必要がある場合は false 。
解説
このメソッドは、コンポーネントの一連の属性が要求されたときに呼び出されます。属性は、属性型 ID をキーとしてディクショナリに追加されます。このサービスを実装すると、ディクショナリ内の属性を変更、追加、または削除できます。
実装時の注意: 型記述子フィルタ サービスへのクエリを繰り返すとパフォーマンスが低下するため、 false を返すのは必要な場合だけにします。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
ITypeDescriptorFilterService インターフェイス | ITypeDescriptorFilterService メンバ | System.ComponentModel.Design 名前空間