RegistrationBuilder.ForTypesDerivedFrom 方法

定义

重载

ForTypesDerivedFrom(Type)

获取表示适用于实现指定类型的所有类型,但其不适用于指定类型的规则的对象。

ForTypesDerivedFrom<T>()

获取表示适用于实现指定类型的所有类型,但其不适用于指定类型的规则的强类型对象。

ForTypesDerivedFrom(Type)

Source:
RegistrationBuilder.cs
Source:
RegistrationBuilder.cs
Source:
RegistrationBuilder.cs

获取表示适用于实现指定类型的所有类型,但其不适用于指定类型的规则的对象。

public:
 System::ComponentModel::Composition::Registration::PartBuilder ^ ForTypesDerivedFrom(Type ^ type);
public System.ComponentModel.Composition.Registration.PartBuilder ForTypesDerivedFrom (Type type);
member this.ForTypesDerivedFrom : Type -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function ForTypesDerivedFrom (type As Type) As PartBuilder

参数

type
Type

类型。

返回

表示规则的对象。

适用于

ForTypesDerivedFrom<T>()

Source:
RegistrationBuilder.cs
Source:
RegistrationBuilder.cs
Source:
RegistrationBuilder.cs

获取表示适用于实现指定类型的所有类型,但其不适用于指定类型的规则的强类型对象。

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

类型参数

T

类型。

返回

表示该规则的强类型对象。

适用于