Share via


MethodInvoker.Create(MethodBase) 方法

定义

创建 MethodInvoker 的新实例。

public:
 static System::Reflection::MethodInvoker ^ Create(System::Reflection::MethodBase ^ method);
public static System.Reflection.MethodInvoker Create (System.Reflection.MethodBase method);
static member Create : System.Reflection.MethodBase -> System.Reflection.MethodInvoker
Public Shared Function Create (method As MethodBase) As MethodInvoker

参数

method
MethodBase

将调用的方法。

返回

新实例。

例外

method不是基于运行时的方法。

注解

为了提高性能,应缓存生成的实例以用于其他调用。

适用于