TypePresenter.Filter Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the filter used to show types.
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)
Property Value
A delegate with one return value and a Boolean value that represents the filter used to show types.
Remarks
By default, the following types are shown in the type presenter/type browser
Project system case
All public types in referenced assemblies/projects
All public types in current project
Standalone XAML case (file in rehosted application/file opened in Visual Studio without solution opened)
- All public types in all assemblies loaded in the AppDomain
By setting the filter property, you can limit the number of types shown in the type browser to only those types that are valid for your activity.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om