ConventionBuilder.ForType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ForType(Type) |
Creates a rule that applies to the specified type. |
ForType<T>() |
Creates a rule that applies to the specified generic type. |
ForType(Type)
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
Creates a rule that applies to the specified type.
public:
System::Composition::Convention::PartConventionBuilder ^ ForType(Type ^ type);
public System.Composition.Convention.PartConventionBuilder ForType (Type type);
member this.ForType : Type -> System.Composition.Convention.PartConventionBuilder
Public Function ForType (type As Type) As PartConventionBuilder
Parameters
- type
- Type
The type.
Returns
An object that can be used to further configure the rule.
Applies to
ForType<T>()
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
- Source:
- ConventionBuilder.cs
Creates a rule that applies to the specified generic type.
public:
generic <typename T>
System::Composition::Convention::PartConventionBuilder<T> ^ ForType();
public System.Composition.Convention.PartConventionBuilder<T> ForType<T> ();
member this.ForType : unit -> System.Composition.Convention.PartConventionBuilder<'T>
Public Function ForType(Of T) () As PartConventionBuilder(Of T)
Type Parameters
- T
The generic type.
Returns
An object that can be used to further configure the rule.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET