The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
PartConventionBuilder::SelectConstructor Method (Func<IEnumerable<ConstructorInfo^>^, ConstructorInfo^>^, Action<ParameterInfo^, ImportConventionBuilder^>^)
.NET Framework (current version)
Selects the constructor used to initialize the part by using the specified function and import configuration.
Assembly: System.Composition.Convention (in System.Composition.Convention.dll)
public:
PartConventionBuilder^ SelectConstructor(
Func<IEnumerable<ConstructorInfo^>^, ConstructorInfo^>^ constructorSelector,
Action<ParameterInfo^, ImportConventionBuilder^>^ importConfiguration
)
Parameters
- constructorSelector
-
Type:
System::Func<IEnumerable<ConstructorInfo^>^, ConstructorInfo^>^
A function that returns a single constructor.
- importConfiguration
-
Type:
System::Action<ParameterInfo^, ImportConventionBuilder^>^
A method that configures the constructor's imports.
Return Value
Type: System.Composition.Convention::PartConventionBuilder^A part builder that provides further configuration of the part.
Show: