TypeDelegator.GetConstructorImpl Metoda

Definicja

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 nullwartość , 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

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 .

Dotyczy

Zobacz też