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

要搜尋的方法名稱。

傳回

一個包含與 相符 name方法的集合。

例外狀況

namenull

適用於