Reflect.InvokeMethod 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
InvokeMethod(MethodInfo, Object)
public static object InvokeMethod(System.Reflection.MethodInfo method, object fixture);
static member InvokeMethod : System.Reflection.MethodInfo * obj -> obj
參數
- method
- MethodInfo
- fixture
- Object
傳回
適用於
InvokeMethod(MethodInfo, Object, Object[])
public static object InvokeMethod(System.Reflection.MethodInfo method, object fixture, params object[] args);
static member InvokeMethod : System.Reflection.MethodInfo * obj * obj[] -> obj
參數
- method
- MethodInfo
- fixture
- Object
- args
- Object[]