Ler em inglês

Partilhar via


TypeInfo.GetMethod Método

Definição

Sobrecargas

GetMethod(String)

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

Parâmetros

name
String

Retornos

Aplica-se a

.NET Core 1.1 e outras versões
Produto Versões
.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);

Parâmetros

name
String
bindingAttr
BindingFlags

Retornos

Aplica-se a

.NET Core 1.1 e outras versões
Produto Versões
.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);

Parâmetros

name
String
types
Type[]

Retornos

Aplica-se a

.NET Core 1.1 e outras versões
Produto Versões
.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);

Parâmetros

name
String
types
Type[]
modifiers
ParameterModifier[]

Retornos

Aplica-se a

.NET Core 1.1 e outras versões
Produto Versões
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6