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.

适用于

另请参阅