AccessibleObject.IReflect.GetMethod Método

Definição

Sobrecargas

Name Description
IReflect.GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

Obtém um MethodInfo objeto correspondente a um método especificado, usando um array de tipos para escolher entre métodos sobrecarregados. Para uma descrição deste elemento, veja GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]).

IReflect.GetMethod(String, BindingFlags)

Obtém um MethodInfo objeto correspondente a um método especificado sob determinadas restrições de pesquisa. Para uma descrição deste elemento, veja GetMethod(String, BindingFlags).

IReflect.GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

Obtém um MethodInfo objeto correspondente a um método especificado, usando um array de tipos para escolher entre métodos sobrecarregados. Para uma descrição deste elemento, veja GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]).

 virtual System::Reflection::MethodInfo ^ System.Reflection.IReflect.GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers) = System::Reflection::IReflect::GetMethod;
System.Reflection.MethodInfo IReflect.GetMethod(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type[] types, System.Reflection.ParameterModifier[] modifiers);
abstract member System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
override this.System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Function GetMethod (name As String, bindingAttr As BindingFlags, binder As Binder, types As Type(), modifiers As ParameterModifier()) As MethodInfo Implements IReflect.GetMethod

Parâmetros

name
String

O nome do membro a encontrar.

bindingAttr
BindingFlags

Os atributos de ligação usados para controlar a pesquisa.

binder
Binder

Um objeto que implementa Binder, contendo propriedades relacionadas com este método.

types
Type[]

Um array usado para escolher entre métodos sobrecarregados.

modifiers
ParameterModifier[]

Um conjunto de modificadores de parâmetros usados para fazer a ligação funcionar com assinaturas de parâmetros nas quais os tipos foram modificados.

Devoluções

O método solicitado que corresponda a todos os parâmetros especificados.

Implementações

Exceções

O objeto implementa múltiplos métodos com o mesmo nome.

Observações

O valor de retorno é uma correspondência baseada no nome do método, na System.Reflection.BindingFlags enumeração, no tipo de conversão de tipo especificada pelo binder parâmetro, na sobrecarga e no System.Reflection.ParameterInfo que descreve a assinatura do método.

Este membro é uma implementação explícita de membro de interface. Só pode ser usado quando a AccessibleObject instância é transmitida para uma IReflect interface.

Aplica-se a

IReflect.GetMethod(String, BindingFlags)

Obtém um MethodInfo objeto correspondente a um método especificado sob determinadas restrições de pesquisa. Para uma descrição deste elemento, veja GetMethod(String, BindingFlags).

 virtual System::Reflection::MethodInfo ^ System.Reflection.IReflect.GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr) = System::Reflection::IReflect::GetMethod;
System.Reflection.MethodInfo IReflect.GetMethod(string name, System.Reflection.BindingFlags bindingAttr);
abstract member System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo
override this.System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo
Function GetMethod (name As String, bindingAttr As BindingFlags) As MethodInfo Implements IReflect.GetMethod

Parâmetros

name
String

O nome do membro a encontrar.

bindingAttr
BindingFlags

Os atributos de ligação usados para controlar a pesquisa.

Devoluções

Um MethodInfo objeto contendo a informação do método, com a correspondência baseada no nome do método e nas restrições de pesquisa especificadas em bindingAttr.

Implementações

Exceções

O objeto implementa múltiplos métodos com o mesmo nome.

Observações

Este membro é uma implementação explícita de membro de interface. Só pode ser usado quando a AccessibleObject instância é transmitida para uma IReflect interface.

Aplica-se a