RuntimeReflectionExtensions.GetRuntimeMethod(Type, String, Type[]) メソッド

定義

指定したメソッドを表すオブジェクトを取得します。

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

パラメーター

type
Type

メソッドを含む型。

name
String

メソッドの名前。

parameters
Type[]

配列には、メソッドのパラメーターを格納します。

戻り値

MethodInfo

指定したメソッドを表すオブジェクト。メソッドが見つからない場合は null

例外

typenullです。

または

namenullです。

指定した名前のメソッドが複数個見つかりました。

適用対象

こちらもご覧ください