TypeInfo.GetDeclaredMethods(String) Метод

Определение

Возвращает коллекцию, содержащую все методы, объявленные для текущего типа, соответствующего указанному имени.

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)

Параметры

name
String

Имя метода для поиска.

Возвращаемое значение

IEnumerable<MethodInfo>

Коллекция, содержащая методы, соответствующие name.

Исключения

name имеет значение null.

Применяется к