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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET