語言

PartConventionBuilder.SelectConstructor 方法

定義

多載

名稱 Description
SelectConstructor(Func<IEnumerable<ConstructorInfo>,ConstructorInfo>)

透過指定函式選擇用於初始化零件的建構子。

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

透過指定函式選擇用於初始化零件的建構器並匯入設定。

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

來源:
PartConventionBuilder.cs
來源:
PartConventionBuilder.cs
來源:
PartConventionBuilder.cs
來源:
PartConventionBuilder.cs

透過指定函式選擇用於初始化零件的建構子。

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

參數

constructorSelector
Func<IEnumerable<ConstructorInfo>,ConstructorInfo>

一個回傳單一建構子的函式。

傳回

一個可以用來進一步配置零件的零件製作器。

適用於

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

來源:
PartConventionBuilder.cs
來源:
PartConventionBuilder.cs
來源:
PartConventionBuilder.cs
來源:
PartConventionBuilder.cs

透過指定函式選擇用於初始化零件的建構器並匯入設定。

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

參數

constructorSelector
Func<IEnumerable<ConstructorInfo>,ConstructorInfo>

一個回傳單一建構子的函式。

importConfiguration
Action<ParameterInfo,ImportConventionBuilder>

一種配置建構子匯入的方法。

傳回

一個可以用來進一步配置零件的零件製作器。

適用於