TypeExtensions.GetMethod TypeExtensions.GetMethod TypeExtensions.GetMethod Method

定义

重载

GetMethod(Type, String) GetMethod(Type, String) GetMethod(Type, String)
GetMethod(Type, String, BindingFlags) GetMethod(Type, String, BindingFlags) GetMethod(Type, String, BindingFlags)
GetMethod(Type, String, Type[]) GetMethod(Type, String, Type[]) GetMethod(Type, String, Type[])

GetMethod(Type, String) GetMethod(Type, String) GetMethod(Type, String)

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::MethodInfo ^ GetMethod(Type ^ type, System::String ^ name);
public static System.Reflection.MethodInfo GetMethod (this Type type, string name);
static member GetMethod : Type * string -> System.Reflection.MethodInfo

参数

type
Type Type Type

返回

GetMethod(Type, String, BindingFlags) GetMethod(Type, String, BindingFlags) GetMethod(Type, String, BindingFlags)

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::MethodInfo ^ GetMethod(Type ^ type, System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public static System.Reflection.MethodInfo GetMethod (this Type type, string name, System.Reflection.BindingFlags bindingAttr);
static member GetMethod : Type * string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo

参数

type
Type Type Type

返回

GetMethod(Type, String, Type[]) GetMethod(Type, String, Type[]) GetMethod(Type, String, Type[])

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::MethodInfo ^ GetMethod(Type ^ type, System::String ^ name, cli::array <Type ^> ^ types);
public static System.Reflection.MethodInfo GetMethod (this Type type, string name, Type[] types);
static member GetMethod : Type * string * Type[] -> System.Reflection.MethodInfo

参数

type
Type Type Type
types
Type[]

返回

适用于