TypeInfo.GetDeclaredMethod(String) Metoda

Definicja

Zwraca obiekt reprezentujący określoną metodę zadeklarowaną przez bieżący typ.

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

Parametry

name
String

Nazwa metody.

Zwraca

Jeśli zostanie znaleziony obiekt reprezentujący określoną metodę; w przeciwnym razie , null.

Wyjątki

name to null.

Dotyczy