RuntimeReflectionExtensions.GetRuntimeBaseDefinition(MethodInfo) 方法

定义

检索表示在此方法最先声明的直接或间接类上的指定方法的对象。Retrieves an object that represents the specified method on the direct or indirect base class where the method was first declared.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Reflection::MethodInfo ^ GetRuntimeBaseDefinition(System::Reflection::MethodInfo ^ method);
public static System.Reflection.MethodInfo GetRuntimeBaseDefinition (this System.Reflection.MethodInfo method);
public static System.Reflection.MethodInfo? GetRuntimeBaseDefinition (this System.Reflection.MethodInfo method);
static member GetRuntimeBaseDefinition : System.Reflection.MethodInfo -> System.Reflection.MethodInfo
<Extension()>
Public Function GetRuntimeBaseDefinition (method As MethodInfo) As MethodInfo

参数

method
MethodInfo

关于检索信息的方法。The method to retrieve information about.

返回

MethodInfo

表示在基类中指定的方法的初始声明的对象。An object that represents the specified method's initial declaration on a base class.

例外

methodnullmethod is null.

适用于

另请参阅