Deila með


ConventionBuilder.ForTypesDerivedFrom Method

Definition

Overloads

ForTypesDerivedFrom(Type)

Creates a rule that applies to all types that implement, or are derived from, the specified type.

ForTypesDerivedFrom<T>()

Creates a rule that applies to all types that implement, or are derived from, the specified generic type.

ForTypesDerivedFrom(Type)

Source:
ConventionBuilder.cs
Source:
ConventionBuilder.cs
Source:
ConventionBuilder.cs
Source:
ConventionBuilder.cs
Source:
ConventionBuilder.cs

Creates a rule that applies to all types that implement, or are derived from, the specified type.

public:
 System::Composition::Convention::PartConventionBuilder ^ ForTypesDerivedFrom(Type ^ type);
public System.Composition.Convention.PartConventionBuilder ForTypesDerivedFrom (Type type);
member this.ForTypesDerivedFrom : Type -> System.Composition.Convention.PartConventionBuilder
Public Function ForTypesDerivedFrom (type As Type) As PartConventionBuilder

Parameters

type
Type

The type.

Returns

An object that can be used to further configure the rule.

Applies to

ForTypesDerivedFrom<T>()

Source:
ConventionBuilder.cs
Source:
ConventionBuilder.cs
Source:
ConventionBuilder.cs
Source:
ConventionBuilder.cs

Creates a rule that applies to all types that implement, or are derived from, the specified generic type.

public:
generic <typename T>
 System::Composition::Convention::PartConventionBuilder<T> ^ ForTypesDerivedFrom();
public System.Composition.Convention.PartConventionBuilder<T> ForTypesDerivedFrom<T> ();
member this.ForTypesDerivedFrom : unit -> System.Composition.Convention.PartConventionBuilder<'T>
Public Function ForTypesDerivedFrom(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