共用方式為


RegistrationBuilder.ForType 方法

定義

多載

ForType(Type)

取得物件,表示適用於指定類型的規則。

ForType<T>()

取得強類型物件,表示適用於指定類型的規則。

ForType(Type)

來源:
RegistrationBuilder.cs
來源:
RegistrationBuilder.cs
來源:
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>()

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

類型。

傳回

表示規則的強類型物件。

適用於