TypeInfo.GetMethod 方法

定義

多載

GetMethod(String)

C#
public System.Reflection.MethodInfo GetMethod(string name);

參數

name
String

傳回

適用於

.NET Core 1.1 和其他版本
產品 版本
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6

GetMethod(String, BindingFlags)

C#
public System.Reflection.MethodInfo GetMethod(string name, System.Reflection.BindingFlags bindingAttr);

參數

name
String
bindingAttr
BindingFlags

傳回

適用於

.NET Core 1.1 和其他版本
產品 版本
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6

GetMethod(String, Type[])

C#
public System.Reflection.MethodInfo GetMethod(string name, Type[] types);

參數

name
String
types
Type[]

傳回

適用於

.NET Core 1.1 和其他版本
產品 版本
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6

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

C#
public System.Reflection.MethodInfo GetMethod(string name, Type[] types, System.Reflection.ParameterModifier[] modifiers);

參數

name
String
types
Type[]
modifiers
ParameterModifier[]

傳回

適用於

.NET Core 1.1 和其他版本
產品 版本
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6