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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.