英語で読む

次の方法で共有


Module.GetMethodImpl メソッド

定義

指定した基準に一致するメソッド実装を返します。

C#
protected virtual System.Reflection.MethodInfo? GetMethodImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, System.Reflection.CallingConventions callConvention, Type[]? types, System.Reflection.ParameterModifier[]? modifiers);
C#
protected virtual System.Reflection.MethodInfo GetMethodImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers);

パラメーター

name
String

メソッド名。

bindingAttr
BindingFlags

検索を制御するために使用される BindingFlags ビット フラグのいずれか。

binder
Binder

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

callConvention
CallingConventions

メソッドの呼び出し規則。

types
Type[]

検索対象のパラメーター型。

modifiers
ParameterModifier[]

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

戻り値

指定した条件の実装情報を格納した MethodInfo オブジェクト。メソッドが存在しない場合は null

例外

typesnullです。

適用対象

製品 バージョン
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

こちらもご覧ください