PartBuilder.SelectConstructor Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Eşleşen türlerin içeri aktarma oluşturucu olarak kullanması gereken oluşturucuyu belirtir.
Aşırı Yüklemeler
| SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>) |
Eşleşen türlerin içeri aktarma oluşturucu olarak kullanması gereken oluşturucuyu belirtir. |
| SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>, Action<ParameterInfo,ImportBuilder>) |
Eşleşen türlerin içeri aktarma oluşturucu olarak kullanması gereken oluşturucuyu belirtir ve sonuçta elde edilen içeri aktarma için yapılandırma bilgileri sağlar. |
SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>)
- Kaynak:
- PartBuilder.cs
- Kaynak:
- PartBuilder.cs
- Kaynak:
- PartBuilder.cs
- Kaynak:
- PartBuilder.cs
Eşleşen türlerin içeri aktarma oluşturucu olarak kullanması gereken oluşturucuyu belirtir.
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
Parametreler
- constructorFilter
- Func<ConstructorInfo[],ConstructorInfo>
Bir oluşturucu kümesinden bir oluşturucu seçen işlev.
Döndürülenler
Zincirleme izin vermek için geçerli nesne.
Özel durumlar
constructorFilter
null.
constructorFilter
nulldöndürür.
constructorFilter, hedef türle ilişkili olmayan bir oluşturucu döndürür.
Şunlara uygulanır
SelectConstructor(Func<ConstructorInfo[],ConstructorInfo>, Action<ParameterInfo,ImportBuilder>)
- Kaynak:
- PartBuilder.cs
- Kaynak:
- PartBuilder.cs
- Kaynak:
- PartBuilder.cs
- Kaynak:
- PartBuilder.cs
Eşleşen türlerin içeri aktarma oluşturucu olarak kullanması gereken oluşturucuyu belirtir ve sonuçta elde edilen içeri aktarma için yapılandırma bilgileri sağlar.
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
Parametreler
- constructorFilter
- Func<ConstructorInfo[],ConstructorInfo>
Bir oluşturucu kümesinden bir oluşturucu seçen işlev.
- importConfiguration
- Action<ParameterInfo,ImportBuilder>
İçeri aktaran oluşturucu için yapılandırma bilgilerini içeren bir nesne. Varsayılan değer null.
Döndürülenler
Zincirleme izin vermek için geçerli nesne.
Özel durumlar
constructorFilter
null.
constructorFilter
nulldöndürür.
constructorFilter, hedef türle ilişkili olmayan bir oluşturucu döndürür.