HtmlControlDesigner.PreFilterEvents(IDictionary) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定元件物件在設計時 TypeDescriptor 會被暴露的事件清單。
protected:
override void PreFilterEvents(System::Collections::IDictionary ^ events);
protected override void PreFilterEvents(System.Collections.IDictionary events);
override this.PreFilterEvents : System.Collections.IDictionary -> unit
Protected Overrides Sub PreFilterEvents (events As IDictionary)
參數
- events
- IDictionary
一個 IDictionary 包含要暴露元件事件名稱的
備註
此 PreFilterEvents 方法提供一種方式,將項目加入或移除設計者透過 TypeDescriptor 物件暴露的事件字典中。
事件字典中的關鍵字是事件名稱。 這些物件的類型 PropertyDescriptor為 。
給繼承者的注意事項
你可以直接修改可 events 存取的字典,或者保持字典不變。 如果你是覆寫這個方法, PreFilterEvents(IDictionary) 請先呼叫基礎實作,再進行自己的篩選。