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

Definition

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

Parameters

type
Type Type Type

The type that contains the method.

name
String String String

The name of the method.

parameters
Type[]

An array that contains the method's parameters.

Returns

An object that represents the specified method, or null if the method is not found.

Exceptions

System.AmbiguousMatchException System.AmbiguousMatchException System.AmbiguousMatchException

More than one method is found with the specified name.

Applies to

See also