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
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.