ModuleBuilder.GetMethodImpl Metoda

Definicja

Zwraca metodę na poziomie modułu zgodną z określonymi kryteriami.

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

Kombinacja flag bitowych BindingFlags używanych do kontrolowania wyszukiwania.

binder
Binder

Obiekt, który implementuje Binderobiekt zawierający właściwości powiązane z tą metodą.

callConvention
CallingConventions

Konwencja wywoływania metody .

types
Type[]

Typy parametrów metody .

modifiers
ParameterModifier[]

Tablica modyfikatorów parametrów używana do tworzenia powiązań z podpisami parametrów, w których typy zostały zmodyfikowane.

Zwraca

Metoda zdefiniowana na poziomie modułu i zgodna z określonymi kryteriami; lub null jeśli taka metoda nie istnieje.

Wyjątki

name to null, types to null, lub element elementu types to null.

Uwagi

Ta metoda zapewnia implementację dla wszystkich przeciążeń dziedziczonej Module.GetMethod metody. Użyj metody dziedziczonej Module.GetMethod , aby pobrać metody zadeklarowane na poziomie modułu. Metody na poziomie modułu DefineGlobalMethod są definiowane w kodzie emitowanego przy użyciu metody .

Ważne

Metody na poziomie modułu nie można pobrać do momentu CreateGlobalFunctions wywołania metody dla modułu.

Dotyczy

Zobacz też