RuntimeReflectionExtensions.GetRuntimeMethods(Type) RuntimeReflectionExtensions.GetRuntimeMethods(Type) RuntimeReflectionExtensions.GetRuntimeMethods(Type) Method

定義

擷取集合,表示指定的型別所定義的所有方法。Retrieves a collection that represents all methods defined on a specified 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>

參數

type
Type Type Type

包含方法的型別。The type that contains the methods.

傳回

所指定型別的方法集合。A collection of methods for the specified type.

例外狀況

備註

這個方法會傳回在指定的型別,包括繼承、 非公用執行個體和靜態方法上定義的所有方法。This method returns all methods defined on the specified type, including inherited, non-public, instance, and static methods.

適用於

另請參閱