RuntimeReflectionExtensions.GetRuntimeMethods(Type) 方法

定義

擷取集合,表示指定的型別所定義的所有方法。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<System::Reflection::MethodInfo ^> ^ GetRuntimeMethods(Type ^ type);
public static System.Collections.Generic.IEnumerable<System.Reflection.MethodInfo> GetRuntimeMethods (this Type type);
static member GetRuntimeMethods : Type -> seq<System.Reflection.MethodInfo>
<Extension()>
Public Function GetRuntimeMethods (type As Type) As IEnumerable(Of MethodInfo)

參數

type
Type

包含方法的型別。

傳回

IEnumerable<MethodInfo>

所指定型別的方法集合。

例外狀況

typenull

備註

這個方法會傳回指定型別上定義的所有方法,包括繼承、非公用、實例和靜態方法。

適用於

另請參閱