AccessibleObject.IReflect.GetMethod メソッド
定義
オーバーロード
IReflect.GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) |
オーバーロードされたメソッドの中から選択する Type 配列を使用して、指定したメソッドに対応する MethodInfo オブジェクトを取得します。Gets a MethodInfo object corresponding to a specified method, using a Type array to choose from among overloaded methods. このメンバーの詳細については、「GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])」をご覧ください。For a description of this member, see GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]). |
IReflect.GetMethod(String, BindingFlags) |
指定した検索制約の下で、指定したメソッドに対応する MethodInfo オブジェクトを取得します。Gets a MethodInfo object corresponding to a specified method under specified search constraints. このメンバーの詳細については、「GetMethod(String, BindingFlags)」をご覧ください。For a description of this member, see GetMethod(String, BindingFlags). |
IReflect.GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])
オーバーロードされたメソッドの中から選択する Type 配列を使用して、指定したメソッドに対応する MethodInfo オブジェクトを取得します。Gets a MethodInfo object corresponding to a specified method, using a Type array to choose from among overloaded methods. このメンバーの詳細については、「GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])」をご覧ください。For a description of this member, see GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]).
virtual System::Reflection::MethodInfo ^ System.Reflection.IReflect.GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers) = System::Reflection::IReflect::GetMethod;
System.Reflection.MethodInfo? IReflect.GetMethod (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, Type[] types, System.Reflection.ParameterModifier[]? modifiers);
System.Reflection.MethodInfo IReflect.GetMethod (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type[] types, System.Reflection.ParameterModifier[] modifiers);
abstract member System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
override this.System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Function GetMethod (name As String, bindingAttr As BindingFlags, binder As Binder, types As Type(), modifiers As ParameterModifier()) As MethodInfo Implements IReflect.GetMethod
パラメーター
- name
- String
検索対象のメンバーの名前。The name of the member to find.
- bindingAttr
- BindingFlags
検索を制御するために使用されるバインディング属性。The binding attributes used to control the search.
- binder
- Binder
このメソッドに関連するプロパティが含まれ、Binder を実装するオブジェクト。An object that implements Binder, containing properties related to this method.
- types
- Type[]
オーバーロードされたメソッドからの選択に使用する配列。An array used to choose among overloaded methods.
- modifiers
- ParameterModifier[]
型が変更されているパラメーター シグネチャでバインドを機能させるために使われるパラメーター修飾子の配列。An array of parameter modifiers used to make binding work with parameter signatures in which the types have been modified.
戻り値
指定したすべてのパラメーターが一致する要求されたメソッド。The requested method that matches all the specified parameters.
実装
例外
オブジェクトに複数のメソッドが同じ名前で実装されています。The object implements multiple methods with the same name.
注釈
戻り値は、メソッド名、 System.Reflection.BindingFlags 列挙、パラメーターによって指定された型変換の種類、 binder
オーバーロード、およびメソッドのシグネチャを示すに基づいて一致し System.Reflection.ParameterInfo ます。The return value is a match based on the method name, the System.Reflection.BindingFlags enumeration, the kind of type conversion specified by the binder
parameter, the overload, and the System.Reflection.ParameterInfo that describes the signature of the method.
このメンバーは、明示的なインターフェイス メンバーの実装です。This member is an explicit interface member implementation. これは、AccessibleObject のインスタンスが IReflect インターフェイスにキャストされる場合のみ、使用できます。It can be used only when the AccessibleObject instance is cast to an IReflect interface.
適用対象
IReflect.GetMethod(String, BindingFlags)
指定した検索制約の下で、指定したメソッドに対応する MethodInfo オブジェクトを取得します。Gets a MethodInfo object corresponding to a specified method under specified search constraints. このメンバーの詳細については、「GetMethod(String, BindingFlags)」をご覧ください。For a description of this member, see GetMethod(String, BindingFlags).
virtual System::Reflection::MethodInfo ^ System.Reflection.IReflect.GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr) = System::Reflection::IReflect::GetMethod;
System.Reflection.MethodInfo? IReflect.GetMethod (string name, System.Reflection.BindingFlags bindingAttr);
System.Reflection.MethodInfo IReflect.GetMethod (string name, System.Reflection.BindingFlags bindingAttr);
abstract member System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo
override this.System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo
Function GetMethod (name As String, bindingAttr As BindingFlags) As MethodInfo Implements IReflect.GetMethod
パラメーター
- name
- String
検索対象のメンバーの名前。The name of the member to find.
- bindingAttr
- BindingFlags
検索を制御するために使用されるバインディング属性。The binding attributes used to control the search.
戻り値
メソッド名、および bindingAttr
で指定した検索制約と一致するメソッド情報を格納する MethodInfo オブジェクト。A MethodInfo object containing the method information, with the match being based on the method name and search constraints specified in bindingAttr
.
実装
例外
オブジェクトに複数のメソッドが同じ名前で実装されています。The object implements multiple methods with the same name.
注釈
このメンバーは、明示的なインターフェイス メンバーの実装です。This member is an explicit interface member implementation. これは、AccessibleObject のインスタンスが IReflect インターフェイスにキャストされる場合のみ、使用できます。It can be used only when the AccessibleObject instance is cast to an IReflect interface.