TypeInfo.GetDeclaredMethods(String) Metoda

Definice

Vrátí kolekci, která obsahuje všechny metody deklarované v aktuálním typu, které odpovídají zadanému názvu.

public:
 virtual System::Collections::Generic::IEnumerable<System::Reflection::MethodInfo ^> ^ GetDeclaredMethods(System::String ^ name);
public virtual System.Collections.Generic.IEnumerable<System.Reflection.MethodInfo> GetDeclaredMethods (string name);
abstract member GetDeclaredMethods : string -> seq<System.Reflection.MethodInfo>
override this.GetDeclaredMethods : string -> seq<System.Reflection.MethodInfo>
Public Overridable Function GetDeclaredMethods (name As String) As IEnumerable(Of MethodInfo)
Public Iterator Overridable Function GetDeclaredMethods (name As String) As IEnumerable(Of MethodInfo)

Parametry

name
String

Název metody, který chcete vyhledat.

Návraty

Kolekce obsahující metody, které odpovídají name.

Výjimky

name je null.

Platí pro