ScopingExtensions::Filter Method (ComposablePartCatalog^, Func<ComposablePartDefinition^, Boolean>^)

.NET Framework (current version)
 

Filters the specified catalog with the specified filter function.

Namespace:   System.ComponentModel.Composition.Hosting
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

public:
[ExtensionAttribute]
static FilteredCatalog^ Filter(
	ComposablePartCatalog^ catalog,
	Func<ComposablePartDefinition^, bool>^ filter
)

Parameters

catalog
Type: System.ComponentModel.Composition.Primitives::ComposablePartCatalog^

The catalog to filter.

filter
Type: System::Func<ComposablePartDefinition^, Boolean>^

The filter function.

Return Value

Type: System.ComponentModel.Composition.Hosting::FilteredCatalog^

A new catalog filtered by using the specified filter.

.NET Framework
Available since 4.5
Return to top
Show: