RuntimeReflectionExtensions.GetRuntimeMethod(Type, String, Type[]) Metodo

Definizione

Recupera un oggetto che rappresenta un metodo specificato.

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

Parametri

type
Type

Tipo che contiene il metodo.

name
String

Nome del metodo.

parameters
Type[]

Matrice che contiene i parametri del metodo.

Restituisce

MethodInfo

Oggetto che rappresenta il metodo specificato o null se il metodo non viene trovato.

Eccezioni

type è null.

-oppure-

name è null.

È stato trovato più di un metodo con il nome specificato.

Si applica a

Vedi anche