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

注解

此方法返回在指定类型上定义的所有方法,包括继承的、非公共的、实例和静态方法。

适用于

另请参阅