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 합니다.

적용 대상

추가 정보