TypeDelegator.GetMethodImpl Metoda

Definicja

Wyszukuje określoną metodę, której parametry są zgodne z określonymi typami argumentów i modyfikatorami, przy użyciu określonych ograniczeń powiązania i określonej konwencji wywoływania.

protected:
 override System::Reflection::MethodInfo ^ GetMethodImpl(System::String ^ name, 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.MethodInfo? GetMethodImpl (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, System.Reflection.CallingConventions callConvention, Type[]? types, System.Reflection.ParameterModifier[]? modifiers);
protected override System.Reflection.MethodInfo GetMethodImpl (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers);
override this.GetMethodImpl : string * System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Protected Overrides Function GetMethodImpl (name As String, bindingAttr As BindingFlags, binder As Binder, callConvention As CallingConventions, types As Type(), modifiers As ParameterModifier()) As MethodInfo

Parametry

name
String

Nazwa metody.

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

MethodInfoInfo Obiekt metody implementacji, który 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 CallingConventions zostanie określony, zostanie użyta wartość domyślna CallingConventionsStandard .

Dotyczy

Zobacz też