VirtualTypeImplementor.InvokeMethod(MethodInfo, Object, Object[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Invokes a method on the object.
public:
virtual System::Object ^ InvokeMethod(System::Reflection::MethodInfo ^ method, System::Object ^ instance, cli::array <System::Object ^> ^ args);
public virtual object InvokeMethod (System.Reflection.MethodInfo method, object instance, object[] args);
abstract member InvokeMethod : System.Reflection.MethodInfo * obj * obj[] -> obj
override this.InvokeMethod : System.Reflection.MethodInfo * obj * obj[] -> obj
Public Overridable Function InvokeMethod (method As MethodInfo, instance As Object, args As Object()) As Object
Parameters
- method
- MethodInfo
The method to invoke.
- instance
- Object
The instance on which to invoke the method. This may be null
if the method is static.
- args
- Object[]
The arguments to the method.
Returns
An object that represents a return value of an invoked method.
Exceptions
If non-abstract derived class did not provide an implementation by overriding this method.