ConventionBuilder.ForType Método

Definição

Sobrecargas

ForType(Type)

Cria uma regra que se aplica ao tipo especificado.Creates a rule that applies to the specified type.

ForType<T>()

Cria uma regra que se aplica ao tipo genérico especificado.Creates a rule that applies to the specified generic type.

ForType(Type)

Cria uma regra que se aplica ao tipo especificado.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

Parâmetros

type
Type

O tipo.The type.

Retornos

PartConventionBuilder

Um objeto que pode ser usado para configuração adicional da regra.An object that can be used to further configure the rule.

Aplica-se a

ForType<T>()

Cria uma regra que se aplica ao tipo genérico especificado.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)

Parâmetros de tipo

T

O tipo genérico.The generic type.

Retornos

PartConventionBuilder<T>

Um objeto que pode ser usado para configuração adicional da regra.An object that can be used to further configure the rule.

Aplica-se a