Modifier

Partager via


PartBuilder<T>.SelectConstructor Method

Definition

Specifies the constructor that should be used as an importing constructor.

public:
 System::ComponentModel::Composition::Registration::PartBuilder<T> ^ SelectConstructor(System::Linq::Expressions::Expression<Func<System::ComponentModel::Composition::Registration::ParameterImportBuilder ^, T> ^> ^ constructorFilter);
public System.ComponentModel.Composition.Registration.PartBuilder<T> SelectConstructor (System.Linq.Expressions.Expression<Func<System.ComponentModel.Composition.Registration.ParameterImportBuilder,T>> constructorFilter);
override this.SelectConstructor : System.Linq.Expressions.Expression<Func<System.ComponentModel.Composition.Registration.ParameterImportBuilder, 'T>> -> System.ComponentModel.Composition.Registration.PartBuilder<'T>
Public Function SelectConstructor (constructorFilter As Expression(Of Func(Of ParameterImportBuilder, T))) As PartBuilder(Of T)

Parameters

constructorFilter
Expression<Func<ParameterImportBuilder,T>>

An expression that constructs T by using the desired constructor. It is used only for reference, not actually invoked.

Returns

The current object, to allow chaining.

Applies to