_MethodInfo.Invoke Method (Object, Object[])

Provides COM objects with version-independent access to the Invoke method.

This method is not CLS-compliant.  

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)

Object Invoke (
	Object obj,
	Object[] parameters
)
Object Invoke (
	Object obj, 
	Object[] parameters
)
function Invoke (
	obj : Object, 
	parameters : Object[]
) : Object
Not applicable.

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 a null reference (Nothing in Visual Basic).

If the method or constructor represented by this instance takes a ref parameter (ByRef in Visual Basic), no special attribute is required for that parameter to invoke the method or constructor using this function. Any object in this array that is not explicitly initialized with a value will contain the default value for that object type. For reference type elements, this value is a null reference (Nothing in Visual Basic). For value type elements, this value is 0, 0.0, or false, depending on the specific element type.

Return Value

An instance of the class associated with the constructor.

The Invoke method invokes the method or constructor represented by this object, using the specified parameters.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: