RegistrationBuilder.ForType 方法

定义

重载

ForType(Type)

获取表示适用于指定类型的规则的对象。

ForType<T>()

获取表示适用于指定类型的规则的强类型对象。

ForType(Type)

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

获取表示适用于指定类型的规则的对象。

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

参数

type
Type

类型。

返回

表示规则的对象。

适用于

ForType<T>()

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

获取表示适用于指定类型的规则的强类型对象。

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

类型参数

T

类型。

返回

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

适用于