TypeInfo.GetDeclaredMethod(String) Método

Definição

Retorna um objeto que representa o método público especificado declarado pelo tipo atual.Returns an object that represents the specified public method declared by the current type.

public:
 virtual System::Reflection::MethodInfo ^ GetDeclaredMethod(System::String ^ name);
public virtual System.Reflection.MethodInfo GetDeclaredMethod (string name);
public virtual System.Reflection.MethodInfo? GetDeclaredMethod (string name);
abstract member GetDeclaredMethod : string -> System.Reflection.MethodInfo
override this.GetDeclaredMethod : string -> System.Reflection.MethodInfo
Public Overridable Function GetDeclaredMethod (name As String) As MethodInfo

Parâmetros

name
String

O nome do método.The name of the method.

Retornos

MethodInfo

Um objeto que representa o método especificado, se encontrado; caso contrário, null.An object that represents the specified method, if found; otherwise, null.

Exceções

name é null.name is null.

Aplica-se a