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ązań 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);
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicMethods | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods)]
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);
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);
[<System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicMethods | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicMethods)>]
override this.GetMethodImpl : string * System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
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, w jaki wyszukiwanie jest przeprowadzane. 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 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 takiej samej długości jak types tablica, której elementy reprezentują atrybuty skojarzone z parametrami metody do pobrania.

Zwraca

MethodInfoInfo Obiekt metody implementacji zgodny z określonymi kryteriami lub null jeśli nie można odnaleźć dopasowania.

Atrybuty

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ż