Aracılığıyla paylaş


ScopingExtensions.Filter Yöntem

Tanım

Belirtilen kataloğu belirtilen filtre işleviyle filtreler.

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

Parametreler

catalog
ComposablePartCatalog

Filtre eklenecek katalog.

filter
Func<ComposablePartDefinition,Boolean>

Filter işlevi.

Döndürülenler

Belirtilen filtre kullanılarak filtrelenen yeni bir katalog.

Şunlara uygulanır