MethodInvoker.Create(MethodBase) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個新的 實例。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 不是基於執行時的方法。
備註
為了提升效能,所得實例應被快取以供額外呼叫。