PartBuilder.SelectConstructor Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Menentukan konstruktor yang cocok dengan jenis yang harus digunakan sebagai konstruktor impor.
Overload
| SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>) |
Menentukan konstruktor yang cocok dengan jenis yang harus digunakan sebagai konstruktor impor. |
| SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>, Action<ParameterInfo,ImportBuilder>) |
Menentukan konstruktor yang cocok dengan jenis yang harus digunakan sebagai konstruktor impor, dan menyediakan informasi konfigurasi untuk impor yang dihasilkan. |
SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>)
- Sumber:
- PartBuilder.cs
- Sumber:
- PartBuilder.cs
- Sumber:
- PartBuilder.cs
- Sumber:
- PartBuilder.cs
Menentukan konstruktor yang cocok dengan jenis yang harus digunakan sebagai konstruktor impor.
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
Parameter
- constructorFilter
- Func<ConstructorInfo[],ConstructorInfo>
Fungsi yang memilih satu konstruktor dari sekumpulan konstruktor.
Mengembalikan
Objek saat ini, untuk memungkinkan penautan.
Pengecualian
constructorFilter
null.
constructorFilter mengembalikan null.
constructorFilter mengembalikan konstruktor yang tidak terkait dengan jenis target.
Berlaku untuk
SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>, Action<ParameterInfo,ImportBuilder>)
- Sumber:
- PartBuilder.cs
- Sumber:
- PartBuilder.cs
- Sumber:
- PartBuilder.cs
- Sumber:
- PartBuilder.cs
Menentukan konstruktor yang cocok dengan jenis yang harus digunakan sebagai konstruktor impor, dan menyediakan informasi konfigurasi untuk impor yang dihasilkan.
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
Parameter
- constructorFilter
- Func<ConstructorInfo[],ConstructorInfo>
Fungsi yang memilih satu konstruktor dari sekumpulan konstruktor.
- importConfiguration
- Action<ParameterInfo,ImportBuilder>
Objek yang berisi informasi konfigurasi untuk konstruktor impor. Defaultnya adalah null.
Mengembalikan
Objek saat ini, untuk memungkinkan penautan.
Pengecualian
constructorFilter
null.
constructorFilter mengembalikan null.
constructorFilter mengembalikan konstruktor yang tidak terkait dengan jenis target.