TypeDelegator.GetMethodImpl Metoda

Definice

Vyhledá zadanou metodu, jejíž parametry odpovídají zadaným typům argumentů a modifikátorům, pomocí zadaných vazeb omezení a zadané konvence volání.

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

Název metody.

bindingAttr
BindingFlags

Bitová maska, která ovlivňuje způsob, jakým se provádí hledání. Hodnota je kombinací nulových nebo více bitových příznaků z BindingFlags.

binder
Binder

Objekt, který umožňuje vazbu, vynucování typů argumentů, vyvolání členů a načtení MemberInfo objektů pomocí reflexe. Pokud binder je null, použije se výchozí pořadač.

callConvention
CallingConventions

Konvence volání.

types
Type[]

Pole typu Type obsahující seznam čísel parametrů, pořadí a typů. Typy nemohou být null; k vyhledání metody bez parametrů použijte vhodnou GetMethod metodu nebo prázdné pole.

modifiers
ParameterModifier[]

Pole typu ParameterModifier se stejnou délkou jako types pole, jehož prvky představují atributy přidružené k parametrům metody, která se má získat.

Návraty

Objekt MethodInfoInfo pro metodu implementace, která odpovídá zadaným kritériím, nebo null pokud nebyla nalezena shoda.

Poznámky

Parametr callConvention označuje konvenci volání vstupního bodu. Pokud je zadáno ne CallingConventions , použije se výchozí CallingConventions hodnota Standard .

Platí pro

Viz také