共用方式為


TypePresenter.Filter 屬性

定義

取得或設定用來顯示型別的篩選條件。

public:
 property Func<Type ^, bool> ^ Filter { Func<Type ^, bool> ^ get(); void set(Func<Type ^, bool> ^ value); };
public Func<Type,bool> Filter { get; set; }
member this.Filter : Func<Type, bool> with get, set
Public Property Filter As Func(Of Type, Boolean)

屬性值

具有一個傳回值和一個布林值的委派,這個委派表示用來顯示型別的篩選條件。

備註

根據預設,下列型別會顯示在型別展示器/型別瀏覽器

  1. 專案系統案例

    1. 參考組件/專案中的所有公用型別

    2. 目前專案中的所有公用型別

  2. 獨立 XAML 案例 (在 Visual Studio 中重新裝載的應用程式/檔案中開啟,但未開啟解決方案)

    1. 已載入 AppDomain 之所有組件中的所有公用型別

您可以透過設定篩選屬性,將顯示在型別瀏覽器中的型別數目限制為僅適用於您活動的型別。

適用於