RegistrationBuilder.ForTypesDerivedFrom 方法

定义

重载

名称 说明
ForTypesDerivedFrom(Type)

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

ForTypesDerivedFrom<T>()

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

ForTypesDerivedFrom(Type)

Source:
RegistrationBuilder.cs
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
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

类型。

返回

表示规则的强类型对象。

适用于