ModuleBuilder.GetMethodImpl Metódus

Definíció

A megadott feltételeknek megfelelő modulszintű metódust adja vissza.

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.RequiresUnreferencedCode("Methods might be removed")]
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.RequiresUnreferencedCode("Methods might be removed")>]
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

Paraméterek

name
String

A módszer neve.

bindingAttr
BindingFlags

A keresés vezérléséhez használt bitjelölők kombinációja BindingFlags .

binder
Binder

A metódushoz kapcsolódó tulajdonságokat tartalmazó, implementáló Binderobjektum.

callConvention
CallingConventions

A metódus hívási konvenciója.

types
Type[]

A metódus paramétertípusai.

modifiers
ParameterModifier[]

Paramétermódosítók tömbje, amely lehetővé teszi, hogy a kötés olyan paraméter-aláírásokkal működjön, amelyekben a típusok módosultak.

Válaszok

A modul szintjén definiált és a megadott feltételeknek megfelelő metódus; vagy null ha ez a módszer nem létezik.

Attribútumok

Kivételek

name is null, types is null, vagy egy types eleme is null.

Megjegyzések

Ez a metódus biztosítja az örökölt metódus összes túlterhelésének implementálását Module.GetMethod . Az örökölt Module.GetMethod metódus használatával lekérheti a modul szintjén deklarált metódusokat. A modulszintű metódusok a kibocsátott kódban vannak definiálva a DefineGlobalMethod metódus használatával.

Important

A modulszintű metódusok csak azután kérhetők le, hogy a CreateGlobalFunctions metódust meghívták a modulhoz.

A következőre érvényes:

Lásd még