次の方法で共有


ConventionBuilder.ForTypesMatching Method

Definition

Overloads

ForTypesMatching(Predicate<Type>)

Creates a rule that applies to types that match the specified predicate.

ForTypesMatching<T>(Predicate<Type>)

Creates a rule that applies to types that match the specified predicate and generic type.

ForTypesMatching(Predicate<Type>)

Source:
ConventionBuilder.cs
Source:
ConventionBuilder.cs
Source:
ConventionBuilder.cs
Source:
ConventionBuilder.cs

Creates a rule that applies to types that match the specified predicate.

public:
 System::Composition::Convention::PartConventionBuilder ^ ForTypesMatching(Predicate<Type ^> ^ typeFilter);
public System.Composition.Convention.PartConventionBuilder ForTypesMatching (Predicate<Type> typeFilter);
member this.ForTypesMatching : Predicate<Type> -> System.Composition.Convention.PartConventionBuilder
Public Function ForTypesMatching (typeFilter As Predicate(Of Type)) As PartConventionBuilder

Parameters

typeFilter
Predicate<Type>

The predicate to match.

Returns

An object that can be used to further configure the rule.

Applies to

ForTypesMatching<T>(Predicate<Type>)

Source:
ConventionBuilder.cs
Source:
ConventionBuilder.cs
Source:
ConventionBuilder.cs
Source:
ConventionBuilder.cs

Creates a rule that applies to types that match the specified predicate and generic type.

public:
generic <typename T>
 System::Composition::Convention::PartConventionBuilder<T> ^ ForTypesMatching(Predicate<Type ^> ^ typeFilter);
public System.Composition.Convention.PartConventionBuilder<T> ForTypesMatching<T> (Predicate<Type> typeFilter);
member this.ForTypesMatching : Predicate<Type> -> System.Composition.Convention.PartConventionBuilder<'T>
Public Function ForTypesMatching(Of T) (typeFilter As Predicate(Of Type)) As PartConventionBuilder(Of T)

Type Parameters

T

The type to match.

Parameters

typeFilter
Predicate<Type>

The predicate to match.

Returns

An object that can be used to further configure the rule.

Applies to