ComponentDesigner.PreFilterAttributes(IDictionary) 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
允許設計工具加入至它經由 TypeDescriptor 公開的屬性集。
protected:
virtual void PreFilterAttributes(System::Collections::IDictionary ^ attributes);
C#
protected virtual void PreFilterAttributes (System.Collections.IDictionary attributes);
abstract member PreFilterAttributes : System.Collections.IDictionary -> unit
override this.PreFilterAttributes : System.Collections.IDictionary -> unit
Protected Overridable Sub PreFilterAttributes (attributes As IDictionary)
- attributes
- IDictionary
元件類別的屬性。
這個方法提供將專案加入設計工具透過 TypeDescriptor公開之屬性字典的方法。
屬性字典中的索引鍵是屬性的類型識別碼,如屬性 TypeId 的值所指定。 物件的類型為 PropertyDescriptor。 這個方法會在方法之前 PostFilterAttributes 立即呼叫。
您可以直接修改可透過 參數存取的 attributes
字典,也可以讓字典保持不變。 如果您覆寫此方法,請先呼叫基底實作,再執行自己的篩選。
產品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |