TypeDelegator.GetConstructorImpl Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Pobiera konstruktor, który zaimplementował element TypeDelegator
.
protected:
override System::Reflection::ConstructorInfo ^ GetConstructorImpl(System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, System::Reflection::CallingConventions callConvention, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
protected override System.Reflection.ConstructorInfo? GetConstructorImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[]? modifiers);
protected override System.Reflection.ConstructorInfo GetConstructorImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers);
override this.GetConstructorImpl : System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.ConstructorInfo
Protected Overrides Function GetConstructorImpl (bindingAttr As BindingFlags, binder As Binder, callConvention As CallingConventions, types As Type(), modifiers As ParameterModifier()) As ConstructorInfo
Parametry
- bindingAttr
- BindingFlags
Maska bitowa, która wpływa na sposób przeprowadzania wyszukiwania. Wartość jest kombinacją zera lub większej liczby flag bitowych z BindingFlagsklasy .
- binder
- Binder
Obiekt, który umożliwia powiązanie, przymus typów argumentów, wywołanie elementów członkowskich i pobieranie MemberInfo
obiektów przy użyciu odbicia. Jeśli binder
parametr ma null
wartość , jest używany domyślny binder.
- callConvention
- CallingConventions
Konwencje wywoływania.
- types
- Type[]
Tablica typu Type
zawierająca listę parametrów o numerze, kolejności i typach. Typy nie mogą być null
; użyj odpowiedniej GetMethod
metody lub pustej tablicy, aby wyszukać metodę bez parametrów.
- modifiers
- ParameterModifier[]
Tablica typu ParameterModifier
o tej samej długości co types
tablica, której elementy reprezentują atrybuty skojarzone z parametrami metody do pobrania.
Zwraca
ConstructorInfo
Obiekt metody, która spełnia określone kryteria lub null
jeśli nie można odnaleźć dopasowania.
Uwagi
Parametr callConvention
wskazuje konwencję wywoływania punktu wejścia. Jeśli nie określono konwencji wywoływania, zostanie użyta wartość domyślna CallingConventions Standard
.