RuntimeReflectionExtensions.GetRuntimeMethods(Type) 方法

定義

擷取集合,表示指定的型別所定義的所有方法。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>
<Extension()>
Public Function GetRuntimeMethods (type As Type) As IEnumerable(Of MethodInfo)

參數

type
Type

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

傳回

IEnumerable<MethodInfo>

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

例外狀況

typenulltype is null.

備註

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

適用於

另請參閱