Sdílet prostřednictvím


PartConventionBuilder.SelectConstructor Metoda

Definice

Přetížení

SelectConstructor(Func<IEnumerable<ConstructorInfo>,ConstructorInfo>)

Vybere konstruktor použitý k inicializaci součásti pomocí zadané funkce.

SelectConstructor(Func<IEnumerable<ConstructorInfo>,ConstructorInfo>, Action<ParameterInfo,ImportConventionBuilder>)

Vybere konstruktor použitý k inicializaci součásti pomocí zadané funkce a importu konfigurace.

SelectConstructor(Func<IEnumerable<ConstructorInfo>,ConstructorInfo>)

Zdroj:
PartConventionBuilder.cs
Zdroj:
PartConventionBuilder.cs
Zdroj:
PartConventionBuilder.cs

Vybere konstruktor použitý k inicializaci součásti pomocí zadané funkce.

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

Parametry

constructorSelector
Func<IEnumerable<ConstructorInfo>,ConstructorInfo>

Funkce, která vrací jeden konstruktor.

Návraty

Tvůrce součástí, který lze použít k další konfiguraci dílu.

Platí pro

SelectConstructor(Func<IEnumerable<ConstructorInfo>,ConstructorInfo>, Action<ParameterInfo,ImportConventionBuilder>)

Zdroj:
PartConventionBuilder.cs
Zdroj:
PartConventionBuilder.cs
Zdroj:
PartConventionBuilder.cs

Vybere konstruktor použitý k inicializaci součásti pomocí zadané funkce a importu konfigurace.

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

Parametry

constructorSelector
Func<IEnumerable<ConstructorInfo>,ConstructorInfo>

Funkce, která vrací jeden konstruktor.

importConfiguration
Action<ParameterInfo,ImportConventionBuilder>

Metoda, která konfiguruje importy konstruktoru.

Návraty

Tvůrce součástí, který lze použít k další konfiguraci dílu.

Platí pro