TypePresenter.Filter Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the filter used to show types.

Namespace:   System.Activities.Presentation.View
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

public Func<Type, bool> Filter { get; set; }

Property Value

Type: System.Func<Type, Boolean>

A delegate with one return value and a Boolean value that represents the filter used to show types.

By default, the following types are shown in the type presenter/type browser

  1. Project system case

    1. All public types in referenced assemblies/projects

    2. All public types in current project

  2. Standalone XAML case (file in rehosted application/file opened in Visual Studio without solution opened)

    1. 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.

.NET Framework
Available since 4.0
Return to top
Show: