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);
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

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

Wyjątki

Parametr name ma wartość null.

Dotyczy