PartConventionBuilder<T>.SelectConstructor Method

Definition

Selects a constructor to be used in composition.

public:
 System::Composition::Convention::PartConventionBuilder<T> ^ SelectConstructor(System::Linq::Expressions::Expression<Func<System::Composition::Convention::ParameterImportConventionBuilder ^, T> ^> ^ constructorSelector);
public System.Composition.Convention.PartConventionBuilder<T> SelectConstructor (System.Linq.Expressions.Expression<Func<System.Composition.Convention.ParameterImportConventionBuilder,T>> constructorSelector);
override this.SelectConstructor : System.Linq.Expressions.Expression<Func<System.Composition.Convention.ParameterImportConventionBuilder, 'T>> -> System.Composition.Convention.PartConventionBuilder<'T>
Public Function SelectConstructor (constructorSelector As Expression(Of Func(Of ParameterImportConventionBuilder, T))) As PartConventionBuilder(Of T)

Parameters

constructorSelector
Expression<Func<ParameterImportConventionBuilder,T>>

A function that selects a constructor.

Returns

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

Exceptions

The constructorSelector expression must use the new operator.

Applies to