ModuleBuilder.GetMethodImpl Método

Definición

Devuelve el método de nivel de módulo que coincide con los criterios especificados.

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

Parámetros

name
String

El nombre del método.

bindingAttr
BindingFlags

Combinación de marcas de bits BindingFlags utilizadas para controlar la búsqueda.

binder
Binder

Un objeto que implementa Binder y que contiene propiedades relacionadas con este método.

callConvention
CallingConventions

Convención de llamada del método.

types
Type[]

Tipos de parámetro del método.

modifiers
ParameterModifier[]

Matriz de modificadores de parámetro que se usa para que el enlace funcione con firmas de parámetro en las que se han modificado los tipos.

Devoluciones

Método que se define en el nivel de módulo y coincide con los criterios especificados; o null si este tipo de método no existe.

Excepciones

El valor de name es null, el valor de types es null, o bien, un elemento de types es null.

Comentarios

Este método proporciona la implementación de todas las sobrecargas del método heredado Module.GetMethod . Use el método heredado Module.GetMethod para obtener métodos que se han declarado en el nivel de módulo. Los métodos de nivel de módulo se definen en el código emitido mediante el DefineGlobalMethod método .

Importante

Los métodos de nivel de módulo no se pueden recuperar hasta que se haya llamado al CreateGlobalFunctions método para el módulo.

Se aplica a

Consulte también