PartConventionBuilder<T>.SelectConstructor Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.