Edit

Share via


RegistrationBuilder.ForType Method

Definition

Overloads

ForType(Type)

Gets an object that represents a rule that applies to the specified type.

ForType<T>()

Gets a strongly typed object that represents a rule that applies to the specified type.

ForType(Type)

Source:
RegistrationBuilder.cs
Source:
RegistrationBuilder.cs

Gets an object that represents a rule that applies to the specified type.

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

Parameters

type
Type

The type.

Returns

An object that represents the rule.

Applies to

ForType<T>()

Source:
RegistrationBuilder.cs
Source:
RegistrationBuilder.cs

Gets a strongly typed object that represents a rule that applies to the specified type.

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)

Type Parameters

T

The type.

Returns

A strongly typed object that represents the rule.

Applies to