ConventionBuilder.ForTypesDerivedFrom 方法

定义

重载

ForTypesDerivedFrom(Type)

创建一个适用于所有类型实现,或从指定的类型中派生的规则。Creates a rule that applies to all types that implement, or are derived from, the specified type.

ForTypesDerivedFrom<T>()

创建一个适用于所有类型实现,或从指定的泛型类型中派生的规则。Creates a rule that applies to all types that implement, or are derived from, the specified generic type.

ForTypesDerivedFrom(Type)

创建一个适用于所有类型实现,或从指定的类型中派生的规则。Creates a rule that applies to all types that implement, or are derived from, the specified type.

public:
 System::Composition::Convention::PartConventionBuilder ^ ForTypesDerivedFrom(Type ^ type);
public System.Composition.Convention.PartConventionBuilder ForTypesDerivedFrom (Type type);
member this.ForTypesDerivedFrom : Type -> System.Composition.Convention.PartConventionBuilder
Public Function ForTypesDerivedFrom (type As Type) As PartConventionBuilder

参数

type
Type

类型。The type.

返回

PartConventionBuilder

可用于进一步配置规则的对象。An object that can be used to further configure the rule.

适用于

ForTypesDerivedFrom<T>()

创建一个适用于所有类型实现,或从指定的泛型类型中派生的规则。Creates a rule that applies to all types that implement, or are derived from, the specified generic type.

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

类型参数

T

泛型类型。The generic type.

返回

PartConventionBuilder<T>

可用于进一步配置规则的对象。An object that can be used to further configure the rule.

适用于