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

Définition

Filtre le catalogue spécifié avec la fonction de filtre spécifiée.Filters the specified catalog with the specified filter function.

public:
[System::Runtime::CompilerServices::Extension]
 static System::ComponentModel::Composition::Hosting::FilteredCatalog ^ Filter(System::ComponentModel::Composition::Primitives::ComposablePartCatalog ^ catalog, Func<System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^, bool> ^ filter);
public static System.ComponentModel.Composition.Hosting.FilteredCatalog Filter (this System.ComponentModel.Composition.Primitives.ComposablePartCatalog catalog, Func<System.ComponentModel.Composition.Primitives.ComposablePartDefinition,bool> filter);
static member Filter : System.ComponentModel.Composition.Primitives.ComposablePartCatalog * Func<System.ComponentModel.Composition.Primitives.ComposablePartDefinition, bool> -> System.ComponentModel.Composition.Hosting.FilteredCatalog
<Extension()>
Public Function Filter (catalog As ComposablePartCatalog, filter As Func(Of ComposablePartDefinition, Boolean)) As FilteredCatalog

Paramètres

catalog
ComposablePartCatalog ComposablePartCatalog ComposablePartCatalog ComposablePartCatalog

Catalogue à filtrer.The catalog to filter.

filter
Func<ComposablePartDefinition,Boolean>

Fonction de filtre.The filter function.

Retours

Nouveau catalogue filtré à l'aide du filtre spécifié.A new catalog filtered by using the specified filter.

S’applique à