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.

Namespace:   System.Composition.Convention
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.

Return to top
Show: