次の方法で共有


MemberDescriptor.FindMethod メソッド (Type, String, Type , Type)

パブリック メソッドだけを検索対象として、指定したメソッドをリフレクションによって検索します。

Overloads Protected Shared Function FindMethod( _
   ByVal componentClass As Type, _   ByVal name As String, _   ByVal args() As Type, _   ByVal returnType As Type _) As MethodInfo
[C#]
protected static MethodInfo FindMethod(TypecomponentClass,stringname,Type[] args,TypereturnType);
[C++]
protected: static MethodInfo* FindMethod(Type* componentClass,String* name,Type* args[],Type* returnType);
[JScript]
protected static function FindMethod(
   componentClass : Type,name : String,args : Type[],returnType : Type) : MethodInfo;

パラメータ

  • componentClass
    メソッドを格納しているコンポーネント。
  • name
    検索するメソッドの名前。
  • args
    オーバーロードされたメソッドの中からメソッドを選択するために使用される、メソッドのパラメータを格納している配列。
  • returnType
    メソッドの戻り値の型。

戻り値

メソッドを表す MethodInfo 。指定したメソッドが見つからない場合は null 参照 (Visual Basic では Nothing) が返されます。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

MemberDescriptor クラス | MemberDescriptor メンバ | System.ComponentModel 名前空間 | MemberDescriptor.FindMethod オーバーロードの一覧