TypeInfo.GetDeclaredMethod(String) メソッド

定義

現在の型によって宣言された指定されたメソッドを表すオブジェクトを返します。

public:
 virtual System::Reflection::MethodInfo ^ GetDeclaredMethod(System::String ^ name);
public virtual System.Reflection.MethodInfo GetDeclaredMethod(string name);
abstract member GetDeclaredMethod : string -> System.Reflection.MethodInfo
override this.GetDeclaredMethod : string -> System.Reflection.MethodInfo
Public Overridable Function GetDeclaredMethod (name As String) As MethodInfo

パラメーター

name
String

メソッドの名前。

返品

指定したメソッドを表すオブジェクト (見つかった場合)。それ以外の場合は null

例外

namenullです。

適用対象