ITypeDescriptorFilterService.FilterEvents(IComponent, IDictionary) 메서드

정의

구성 요소가 TypeDescriptor를 통해 노출한 이벤트를 필터링합니다.

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

매개 변수

component
IComponent

이벤트를 필터링할 구성 요소입니다.

events
IDictionary

수정할 수 있는 이벤트의 사전입니다.

반환

필터링된 이벤트 집합이 캐시되도록 하려면 true이고, 필터 서비스가 다시 쿼리하도록 하려면 false입니다.

설명

이 메서드는 사용자가 구성 요소에 대한 이벤트 집합을 요청할 때 호출됩니다. 이벤트는 이벤트 이름을 키로, 해당 EventDescriptor 개체를 값으로 사용하여 사전에 추가됩니다. 이 서비스의 구현자는 사전에서 이벤트 항목을 추가, 제거 또는 변경할 수 있습니다.

구현자 참고

형식 설명자 필터 서비스에 대한 반복 쿼리가 성능을 저하할 수 있으므로 필요한 경우에만 를 반환 false 합니다.

적용 대상

추가 정보