TypeExtensions.GetMethod 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetMethod(Type, String) | |
GetMethod(Type, String, BindingFlags) | |
GetMethod(Type, String, Type[]) |
GetMethod(Type, String)
public:
static System::Reflection::MethodInfo ^ GetMethod(Type ^ type, System::String ^ name);
public static System.Reflection.MethodInfo GetMethod (Type type, string name);
static member GetMethod : Type * string -> System.Reflection.MethodInfo
Public Shared Function GetMethod (type As Type, name As String) As MethodInfo
參數
- type
- Type
- name
- String
傳回
適用於
GetMethod(Type, String, BindingFlags)
public:
static System::Reflection::MethodInfo ^ GetMethod(Type ^ type, System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public static System.Reflection.MethodInfo GetMethod (Type type, string name, System.Reflection.BindingFlags bindingAttr);
static member GetMethod : Type * string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo
Public Shared Function GetMethod (type As Type, name As String, bindingAttr As BindingFlags) As MethodInfo
參數
- type
- Type
- name
- String
- bindingAttr
- BindingFlags
傳回
適用於
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);
public static System.Reflection.MethodInfo? GetMethod (this Type type, string name, Type[] types);
static member GetMethod : Type * string * Type[] -> System.Reflection.MethodInfo
<Extension()>
Public Function GetMethod (type As Type, name As String, types As Type()) As MethodInfo
參數
- type
- Type
- name
- String
- types
- Type[]