RuntimeReflectionExtensions.GetRuntimeMethod(Type, String, Type[]) Método
Definição
Recupera um objeto que representa um método especificado.Retrieves an object that represents a specified method.
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);
static member GetRuntimeMethod : Type * string * Type[] -> System.Reflection.MethodInfo
Parâmetros
- type
- Type
O tipo que contém o método.The type that contains the method.
- name
- String
O nome do método.The name of the method.
- parameters
- Type[]
Uma matriz que contém os parâmetros do método.An array that contains the method's parameters.
Retornos
Um objeto que representa o método especificado ou null
se a classe não for encontrada.An object that represents the specified method, or null
if the method is not found.
Exceções
Foi encontrado mais de um método com o nome especificado.More than one method is found with the specified name.