PartBuilder.SelectConstructor Methode

Definitie

Hiermee geeft u de constructor op die overeenkomende typen moeten gebruiken als importconstructor.

Overloads

Name Description
SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>)

Hiermee geeft u de constructor op die overeenkomende typen moeten gebruiken als importconstructor.

SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>, Action<ParameterInfo,ImportBuilder>)

Hiermee geeft u de constructor op die overeenkomende typen moeten worden gebruikt als importconstructor en bevat configuratie-informatie voor de resulterende import.

SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>)

Bron:
PartBuilder.cs
Bron:
PartBuilder.cs
Bron:
PartBuilder.cs
Bron:
PartBuilder.cs

Hiermee geeft u de constructor op die overeenkomende typen moeten gebruiken als importconstructor.

public:
 System::ComponentModel::Composition::Registration::PartBuilder ^ SelectConstructor(Func<cli::array <System::Reflection::ConstructorInfo ^> ^, System::Reflection::ConstructorInfo ^> ^ constructorFilter);
public System.ComponentModel.Composition.Registration.PartBuilder SelectConstructor(Func<System.Reflection.ConstructorInfo[],System.Reflection.ConstructorInfo> constructorFilter);
member this.SelectConstructor : Func<System.Reflection.ConstructorInfo[], System.Reflection.ConstructorInfo> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function SelectConstructor (constructorFilter As Func(Of ConstructorInfo(), ConstructorInfo)) As PartBuilder

Parameters

constructorFilter
Func<ConstructorInfo[],ConstructorInfo>

Een functie die één constructor kiest uit een set constructors.

Retouren

Het huidige object, om ketening toe te staan.

Uitzonderingen

constructorFilter is null.

constructorFilter retourneert null.

constructorFilter retourneert een constructor die niet is gekoppeld aan het doeltype.

Van toepassing op

SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>, Action<ParameterInfo,ImportBuilder>)

Bron:
PartBuilder.cs
Bron:
PartBuilder.cs
Bron:
PartBuilder.cs
Bron:
PartBuilder.cs

Hiermee geeft u de constructor op die overeenkomende typen moeten worden gebruikt als importconstructor en bevat configuratie-informatie voor de resulterende import.

public:
 System::ComponentModel::Composition::Registration::PartBuilder ^ SelectConstructor(Func<cli::array <System::Reflection::ConstructorInfo ^> ^, System::Reflection::ConstructorInfo ^> ^ constructorFilter, Action<System::Reflection::ParameterInfo ^, System::ComponentModel::Composition::Registration::ImportBuilder ^> ^ importConfiguration);
public System.ComponentModel.Composition.Registration.PartBuilder SelectConstructor(Func<System.Reflection.ConstructorInfo[],System.Reflection.ConstructorInfo> constructorFilter, Action<System.Reflection.ParameterInfo,System.ComponentModel.Composition.Registration.ImportBuilder> importConfiguration);
member this.SelectConstructor : Func<System.Reflection.ConstructorInfo[], System.Reflection.ConstructorInfo> * Action<System.Reflection.ParameterInfo, System.ComponentModel.Composition.Registration.ImportBuilder> -> System.ComponentModel.Composition.Registration.PartBuilder
Public Function SelectConstructor (constructorFilter As Func(Of ConstructorInfo(), ConstructorInfo), importConfiguration As Action(Of ParameterInfo, ImportBuilder)) As PartBuilder

Parameters

constructorFilter
Func<ConstructorInfo[],ConstructorInfo>

Een functie die één constructor kiest uit een set constructors.

importConfiguration
Action<ParameterInfo,ImportBuilder>

Een object met configuratiegegevens voor de importconstructor. De standaardwaarde is null.

Retouren

Het huidige object, om ketening toe te staan.

Uitzonderingen

constructorFilter is null.

constructorFilter retourneert null.

constructorFilter retourneert een constructor die niet is gekoppeld aan het doeltype.

Van toepassing op