MemberDescriptor.FindMethod メソッド

定義

指定したメソッドをリフレクションによって検索します。

オーバーロード

FindMethod(Type, String, Type[], Type)

パブリック メソッドだけを検索対象として、指定したメソッドをリフレクションによって検索します。

FindMethod(Type, String, Type[], Type, Boolean)

パブリック メソッドだけを検索対象とすることを指定して、特定のメソッドをリフレクションによって検索します。

FindMethod(Type, String, Type[], Type)

ソース:
MemberDescriptor.cs
ソース:
MemberDescriptor.cs
ソース:
MemberDescriptor.cs

パブリック メソッドだけを検索対象として、指定したメソッドをリフレクションによって検索します。

protected:
 static System::Reflection::MethodInfo ^ FindMethod(Type ^ componentClass, System::String ^ name, cli::array <Type ^> ^ args, Type ^ returnType);
protected static System.Reflection.MethodInfo FindMethod (Type componentClass, string name, Type[] args, Type returnType);
protected static System.Reflection.MethodInfo? FindMethod (Type componentClass, string name, Type[] args, Type returnType);
static member FindMethod : Type * string * Type[] * Type -> System.Reflection.MethodInfo
Protected Shared Function FindMethod (componentClass As Type, name As String, args As Type(), returnType As Type) As MethodInfo

パラメーター

componentClass
Type

メソッドを格納しているコンポーネント。

name
String

検索するメソッドの名前。

args
Type[]

オーバーロードされたメソッドの中からメソッドを選択するために使用される、メソッドのパラメーターを格納している配列。

returnType
Type

メソッドの戻り値の型。

戻り値

メソッドを表す MethodInfo。メソッドが見つからない場合は null

適用対象

FindMethod(Type, String, Type[], Type, Boolean)

ソース:
MemberDescriptor.cs
ソース:
MemberDescriptor.cs
ソース:
MemberDescriptor.cs

パブリック メソッドだけを検索対象とすることを指定して、特定のメソッドをリフレクションによって検索します。

protected:
 static System::Reflection::MethodInfo ^ FindMethod(Type ^ componentClass, System::String ^ name, cli::array <Type ^> ^ args, Type ^ returnType, bool publicOnly);
protected static System.Reflection.MethodInfo FindMethod (Type componentClass, string name, Type[] args, Type returnType, bool publicOnly);
protected static System.Reflection.MethodInfo? FindMethod (Type componentClass, string name, Type[] args, Type returnType, bool publicOnly);
static member FindMethod : Type * string * Type[] * Type * bool -> System.Reflection.MethodInfo
Protected Shared Function FindMethod (componentClass As Type, name As String, args As Type(), returnType As Type, publicOnly As Boolean) As MethodInfo

パラメーター

componentClass
Type

メソッドを格納しているコンポーネント。

name
String

検索するメソッドの名前。

args
Type[]

オーバーロードされたメソッドの中からメソッドを選択するために使用される、メソッドのパラメーターを格納している配列。

returnType
Type

メソッドの戻り値の型。

publicOnly
Boolean

検索対象をパブリック メソッドに限定するかどうかを示します。

戻り値

メソッドを表す MethodInfo。メソッドが見つからない場合は null

適用対象