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

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

Filters the specified catalog with the specified filter function.

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

static member Filter : 
        catalog:ComposablePartCatalog *
        filter:Func<ComposablePartDefinition, bool> -> FilteredCatalog

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: