語言

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 不是基於執行時的方法。

備註

為了提升效能,所得實例應被快取以供額外呼叫。

適用於