Udostępnij przez


TypeDelegator.GetConstructorImpl Metoda

Definicja

Pobiera konstruktor, który zaimplementował TypeDelegatorelement .

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ą flag zero lub więcej bitów z BindingFlags.

binder
Binder

Obiekt, który umożliwia powiązanie, przymus typów argumentów, wywołanie elementów członkowskich i pobieranie obiektów przy użyciu odbicia MemberInfo . Jeśli binder jest to null, jest używany domyślny binder.

callConvention
CallingConventions

Konwencje wywoływania.

types
Type[]

Tablica typu Type zawierająca listę parametrów numer, kolejność i typy. 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 dla metody spełniającej 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 żadnej konwencji wywoływania, zostanie użyta wartość domyślna CallingConventionsStandard .

Dotyczy

Zobacz też