Type.GetMethodImpl メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

Protected MustOverride Function GetMethodImpl ( _ name As String, _ bindingAttr As BindingFlags, _ binder As Binder, _ callConvention As CallingConventions, _ types As Type(), _ modifiers As ParameterModifier() _ ) As MethodInfo
Dim name As String Dim bindingAttr As BindingFlags Dim binder As Binder Dim callConvention As CallingConventions Dim types As Type() Dim modifiers As ParameterModifier() Dim returnValue As MethodInfo returnValue = Me.GetMethodImpl(name, bindingAttr, binder, callConvention, types, modifiers)
protected abstract MethodInfo GetMethodImpl ( string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers )
protected: virtual MethodInfo^ GetMethodImpl ( String^ name, BindingFlags bindingAttr, Binder^ binder, CallingConventions callConvention, array<Type^>^ types, array<ParameterModifier>^ modifiers ) abstract
protected abstract MethodInfo GetMethodImpl ( String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers )
protected abstract function GetMethodImpl ( name : String, bindingAttr : BindingFlags, binder : Binder, callConvention : CallingConventions, types : Type[], modifiers : ParameterModifier[] ) : MethodInfo
- bindingAttr
検索の実行方法を指定する 1 つ以上の BindingFlags から成るビット マスク。
または
null 参照 (Visual Basic では Nothing) を返す 0。
- binder
一連のプロパティを定義し、バインディングを有効にする Binder オブジェクト。バインディングには、オーバーロードされたメソッドの選択、引数の型の強制変換、リフレクションによるメンバの呼び出しなどが含まれます。
または
DefaultBinder を使用する場合は null 参照 (Visual Basic では Nothing)。
- callConvention
引数の順序とレイアウト、戻り値を渡す方法、引数を格納するレジスタ、スタックをクリーンアップするプロセスに関する一連の規則を指定する CallingConventions オブジェクト。
- types
取得するメソッドのパラメータの数、順序、および型を表す Type オブジェクトの配列。
または
パラメータをとらないメソッドを取得するための、Type 型の空の配列 (Type[] types = new Type[0])。
または
null 参照 (Visual Basic では Nothing)。types が null 参照 (Visual Basic では Nothing) の場合、引数は一致しません。
指定した要件と一致するメソッドが存在する場合は、そのメソッドを表す MethodInfo オブジェクト。それ以外の場合は null 参照 (Visual Basic では Nothing)。


既定のバインダは ParameterModifier (modifiers パラメータ) を処理しませんが、System.Reflection.Binder 抽象クラスを使用してmodifiers を処理するカスタム バインダを記述できます。ParameterModifier は、COM 相互運用機能によって呼び出すときだけに使用され、参照渡しされるパラメータだけが処理されます。
types が null 参照 (Visual Basic では Nothing) の場合、引数は一致しません。
types 配列と modifiers 配列の長さが同じです。types 配列で指定するパラメータには、modifiers 配列で指定されている pdIn、pdOut、pdLcid、pdRetval、pdOptional、pdHasDefault の各属性を設定できます。これらの属性は、それぞれ [In]、[Out]、[lcid]、[retval]、[optional]、およびパラメータが既定値を持つかどうかを指定する値を表します。パラメータに関連付けられた属性はメタデータに格納され、相互運用性を拡張します。
次の BindingFlags フィルタ フラグは、検索対象に含めるメソッドを定義するために使用できます。
-
戻り値を取得するには、BindingFlags.Instance または BindingFlags.Static のいずれかを指定する必要があります。
-
検索対象にパブリックではないメソッド (つまり、プライベート メンバやプロテクト メンバ) を含めるための BindingFlags.NonPublic を指定します。
-
階層構造の上位にある public 静的メンバおよび protected 静的メンバを検索対象に含めるには、BindingFlags.FlattenHierarchy を指定します。継承クラスの private 静的メンバは含まれません。
次の BindingFlags 修飾フラグは、検索方法を変更するために使用できます。
詳細については、「System.Reflection.BindingFlags」を参照してください。
要求された型がパブリックではなく、呼び出し元に現在のアセンブリ外の非パブリック オブジェクトをリフレクションするための ReflectionPermission がない場合、このメソッドは null 参照 (Visual Basic では Nothing) を返します。


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からType.GetMethodImpl メソッドを検索する場合は、下記のリンクをクリックしてください。

- Type.GetMethodImpl メソッドのページへのリンク