MemberDescriptor.FindMethod メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
リフレクションを使用して、指定されたメソッドを検索します。
オーバーロード
| 名前 | 説明 |
|---|---|
| FindMethod(Type, String, Type[], Type) |
リフレクションを使用して指定されたメソッドを検索し、パブリック メソッドのみを検索します。 |
| FindMethod(Type, String, Type[], Type, Boolean) |
リフレクションを使用して指定されたメソッドを検索し、パブリック メソッドのみを検索するオプションを指定します。 |
FindMethod(Type, String, Type[], Type)
リフレクションを使用して指定されたメソッドを検索し、パブリック メソッドのみを検索します。
protected:
static System::Reflection::MethodInfo ^ FindMethod(Type ^ componentClass, System::String ^ name, cli::array <Type ^> ^ args, Type ^ returnType);
protected static System.Reflection.MethodInfo FindMethod(Type componentClass, string name, Type[] args, Type returnType);
static member FindMethod : Type * string * Type[] * Type -> System.Reflection.MethodInfo
Protected Shared Function FindMethod (componentClass As Type, name As String, args As Type(), returnType As Type) As MethodInfo
パラメーター
- componentClass
- Type
メソッドを含むコンポーネント。
- name
- String
検索するメソッドの名前。
- args
- Type[]
オーバーロードされたメソッドの中から選択するために使用される、メソッドのパラメーターの配列。
- returnType
- Type
メソッドの返す型。
返品
メソッドを表す MethodInfo 。メソッドが見つからない場合は null 。
適用対象
FindMethod(Type, String, Type[], Type, Boolean)
リフレクションを使用して指定されたメソッドを検索し、パブリック メソッドのみを検索するオプションを指定します。
protected:
static System::Reflection::MethodInfo ^ FindMethod(Type ^ componentClass, System::String ^ name, cli::array <Type ^> ^ args, Type ^ returnType, bool publicOnly);
protected static System.Reflection.MethodInfo FindMethod(Type componentClass, string name, Type[] args, Type returnType, bool publicOnly);
static member FindMethod : Type * string * Type[] * Type * bool -> System.Reflection.MethodInfo
Protected Shared Function FindMethod (componentClass As Type, name As String, args As Type(), returnType As Type, publicOnly As Boolean) As MethodInfo
パラメーター
- componentClass
- Type
メソッドを含むコンポーネント。
- name
- String
検索するメソッドの名前。
- args
- Type[]
オーバーロードされたメソッドの中から選択するために使用される、メソッドのパラメーターの配列。
- returnType
- Type
メソッドの返す型。
- publicOnly
- Boolean
検索をパブリック メソッドに制限するかどうかを指定します。
返品
メソッドを表す MethodInfo 。メソッドが見つからない場合は null 。