RegistrationBuilder.ForType 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 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.PartBuilderPublic 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
类型。
返回
表示该规则的强类型对象。