ModuleBuilder.GetMethodImpl メソッド

定義

指定した条件に一致するモジュール レベルのメソッドを返します。

protected:
 override System::Reflection::MethodInfo ^ GetMethodImpl(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, System::Reflection::CallingConventions callConvention, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
protected override System.Reflection.MethodInfo GetMethodImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers);
override this.GetMethodImpl : string * System.Reflection.BindingFlags * System.Reflection.Binder * System.Reflection.CallingConventions * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Protected Overrides Function GetMethodImpl (name As String, bindingAttr As BindingFlags, binder As Binder, callConvention As CallingConventions, types As Type(), modifiers As ParameterModifier()) As MethodInfo

パラメーター

name
String

メソッド名。

bindingAttr
BindingFlags

検索を制御するために使用 BindingFlags ビット フラグの組み合わせ。

binder
Binder

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

callConvention
CallingConventions

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

types
Type[]

メソッドのパラメーター型。

modifiers
ParameterModifier[]

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

返品

モジュール レベルで定義され、指定された条件に一致するメソッド。または、そのようなメソッドが存在しない場合は null します。

例外

namenulltypesnull、または types の要素が null

注釈

このメソッドは、継承された Module.GetMethod メソッドのすべてのオーバーロードの実装を提供します。 継承された Module.GetMethod メソッドを使用して、モジュール レベルで宣言されているメソッドを取得します。 モジュール レベルのメソッドは、 DefineGlobalMethod メソッドを使用して出力されるコードで定義されます。

Important

モジュール レベルのメソッドは、モジュールに対して CreateGlobalFunctions メソッドが呼び出されるまで取得できません。

適用対象

こちらもご覧ください