IReflect.GetMethod メソッド

定義

指定したメソッドに対応する MethodInfo オブジェクトを取得します。

オーバーロード

名前 説明
GetMethod(String, BindingFlags)

指定した検索制約の下で、指定したメソッドに対応する MethodInfo オブジェクトを取得します。

GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

オーバーロードされたメソッドの中から選択するType配列を使用して、指定したメソッドに対応するMethodInfo オブジェクトを取得します。

GetMethod(String, BindingFlags)

指定した検索制約の下で、指定したメソッドに対応する MethodInfo オブジェクトを取得します。

public:
 System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public System.Reflection.MethodInfo GetMethod(string name, System.Reflection.BindingFlags bindingAttr);
abstract member GetMethod : string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo
Public Function GetMethod (name As String, bindingAttr As BindingFlags) As MethodInfo

パラメーター

name
String

検索するメンバーの名前。

bindingAttr
BindingFlags

検索を制御するために使用されるバインド属性。

返品

メソッド情報を含む MethodInfo オブジェクト。一致は、 bindingAttrで指定されたメソッド名と検索制約に基づいています。

例外

オブジェクトは、同じ名前の複数のメソッドを実装します。

こちらもご覧ください

適用対象

GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

オーバーロードされたメソッドの中から選択するType配列を使用して、指定したメソッドに対応するMethodInfo オブジェクトを取得します。

public:
 System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
public System.Reflection.MethodInfo GetMethod(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type[] types, System.Reflection.ParameterModifier[] modifiers);
abstract member GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Public Function GetMethod (name As String, bindingAttr As BindingFlags, binder As Binder, types As Type(), modifiers As ParameterModifier()) As MethodInfo

パラメーター

name
String

検索するメンバーの名前。

bindingAttr
BindingFlags

検索を制御するために使用されるバインド属性。

binder
Binder

このメソッドに関連するプロパティを含む Binderを実装するオブジェクト。

types
Type[]

オーバーロードされたメソッドの中から選択するために使用される配列。

modifiers
ParameterModifier[]

型が変更されたパラメーター シグネチャでバインドを機能させるために使用されるパラメーター修飾子の配列。

返品

指定したすべてのパラメーターに一致する要求されたメソッド。

例外

オブジェクトは、同じ名前の複数のメソッドを実装します。

注釈

戻り値は、メソッド名、 BindingFlags 列挙型メンバー、 binder パラメーターで指定された型変換の種類、オーバーロード、およびメソッドのシグネチャを記述する ParameterInfo に基づく一致です。

こちらもご覧ください

適用対象