PartConventionBuilder.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.
Overloads
SelectConstructor(Func<IEnumerable<ConstructorInfo>,ConstructorInfo>) |
Selects the constructor used to initialize the part by using the specified function. |
SelectConstructor(Func<IEnumerable<ConstructorInfo>,ConstructorInfo>, Action<ParameterInfo,ImportConventionBuilder>) |
Selects the constructor used to initialize the part by using the specified function and import configuration. |
SelectConstructor(Func<IEnumerable<ConstructorInfo>,ConstructorInfo>)
- Source:
- PartConventionBuilder.cs
- Source:
- PartConventionBuilder.cs
- Source:
- PartConventionBuilder.cs
- Source:
- PartConventionBuilder.cs
Selects the constructor used to initialize the part by using the specified function.
public:
System::Composition::Convention::PartConventionBuilder ^ SelectConstructor(Func<System::Collections::Generic::IEnumerable<System::Reflection::ConstructorInfo ^> ^, System::Reflection::ConstructorInfo ^> ^ constructorSelector);
public System.Composition.Convention.PartConventionBuilder SelectConstructor (Func<System.Collections.Generic.IEnumerable<System.Reflection.ConstructorInfo>,System.Reflection.ConstructorInfo> constructorSelector);
member this.SelectConstructor : Func<seq<System.Reflection.ConstructorInfo>, System.Reflection.ConstructorInfo> -> System.Composition.Convention.PartConventionBuilder
Public Function SelectConstructor (constructorSelector As Func(Of IEnumerable(Of ConstructorInfo), ConstructorInfo)) As PartConventionBuilder
Parameters
- constructorSelector
- Func<IEnumerable<ConstructorInfo>,ConstructorInfo>
A function that returns a single constructor.
Returns
A part builder that can be used to further configure the part.
Applies to
SelectConstructor(Func<IEnumerable<ConstructorInfo>,ConstructorInfo>, Action<ParameterInfo,ImportConventionBuilder>)
- Source:
- PartConventionBuilder.cs
- Source:
- PartConventionBuilder.cs
- Source:
- PartConventionBuilder.cs
- Source:
- PartConventionBuilder.cs
Selects the constructor used to initialize the part by using the specified function and import configuration.
public:
System::Composition::Convention::PartConventionBuilder ^ SelectConstructor(Func<System::Collections::Generic::IEnumerable<System::Reflection::ConstructorInfo ^> ^, System::Reflection::ConstructorInfo ^> ^ constructorSelector, Action<System::Reflection::ParameterInfo ^, System::Composition::Convention::ImportConventionBuilder ^> ^ importConfiguration);
public System.Composition.Convention.PartConventionBuilder SelectConstructor (Func<System.Collections.Generic.IEnumerable<System.Reflection.ConstructorInfo>,System.Reflection.ConstructorInfo> constructorSelector, Action<System.Reflection.ParameterInfo,System.Composition.Convention.ImportConventionBuilder> importConfiguration);
member this.SelectConstructor : Func<seq<System.Reflection.ConstructorInfo>, System.Reflection.ConstructorInfo> * Action<System.Reflection.ParameterInfo, System.Composition.Convention.ImportConventionBuilder> -> System.Composition.Convention.PartConventionBuilder
Public Function SelectConstructor (constructorSelector As Func(Of IEnumerable(Of ConstructorInfo), ConstructorInfo), importConfiguration As Action(Of ParameterInfo, ImportConventionBuilder)) As PartConventionBuilder
Parameters
- constructorSelector
- Func<IEnumerable<ConstructorInfo>,ConstructorInfo>
A function that returns a single constructor.
- importConfiguration
- Action<ParameterInfo,ImportConventionBuilder>
A method that configures the constructor's imports.
Returns
A part builder that can be used to further configure the part.
Applies to
.NET