ProjBAAssemblyHelper.invokeMethod Method [AX 2012]

Invokes a method on an instance of a .Net class using reflection.

public CLRObject invokeMethod(
    CLRObject _classObject, 
    str _methodName, 
   [anytype _parameter1, 
    anytype _parameter2, 
    anytype _parameter3])

Run On

Server

Parameters

_classObject
Type: CLRObject Class
The instance of the class.
_methodName
Type: str
The name of the method to invoke.
_parameter1
Type: anytype
First parameter of the method.
_parameter2
Type: anytype
Second parameter of the method.
_parameter3
Type: anytype
Third parameter of the method.

Return Value

Type: CLRObject Class
Return value from the invoked method.

Community Additions

ADD
Show: