Windows apps
Collapse the table of content
Expand the table of content
Information
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.

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:
© 2017 Microsoft