System.Runtime.InteropServices._MethodBase.Invoke Method

Provides COM objects with version-independent access to the System.Reflection.MethodBase.Invoke(object, Object[]) method.

Syntax

public object Invoke (object obj, object[] parameters)

Parameters

obj
The instance that created this method.
parameters
An argument list for the invoked method or constructor. This is an array of objects with the same number, order, and type as the parameters of the method or constructor to be invoked. If there are no parameters, parameters should be null.

Returns

An instance of the class associated with the constructor.

Remarks

This method is for access to managed classes from unmanaged code and should not be called from managed code.

The System.Reflection.MethodBase.Invoke(object, Object[]) method invokes the method or constructor represented by this object, using the specified parameters.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0