RuntimeReflectionExtensions.GetRuntimeMethod(Type, String, Type[]) Método

Definición

Recupera un objeto que representa un método especificado.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::MethodInfo ^ GetRuntimeMethod(Type ^ type, System::String ^ name, cli::array <Type ^> ^ parameters);
public static System.Reflection.MethodInfo GetRuntimeMethod (this Type type, string name, Type[] parameters);
public static System.Reflection.MethodInfo? GetRuntimeMethod (this Type type, string name, Type[] parameters);
static member GetRuntimeMethod : Type * string * Type[] -> System.Reflection.MethodInfo
<Extension()>
Public Function GetRuntimeMethod (type As Type, name As String, parameters As Type()) As MethodInfo

Parámetros

type
Type

Tipo que contiene el método.

name
String

Nombre del método.

parameters
Type[]

Matriz que contiene los parámetros del método.

Devoluciones

MethodInfo

Objeto que representa el método especificado o null si no se encuentra el método.

Excepciones

type es null.

O bien

name es null.

Se encontró más de un método con el nombre especificado.

Se aplica a

Consulte también