Filter Property

TypePresenter::Filter Property

.NET Framework (current version)
 

Gets or sets the filter used to show types.

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

public:
property Func<Type^, bool>^ Filter {
	Func<Type^, bool>^ get();
	void set(Func<Type^, bool>^ value);
}

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:
© 2016 Microsoft