Global::runTableMethodIL Method [AX 2012]
Runs the specified method and makes sure it is executed under Xpp IL.
server public static container runTableMethodIL( TableName _tableName, MethodName _methodName, container _params, [boolean _ignoreTtsLevel])
- Type: TableName Extended Data Type
The name of the table that contains the method.
- Type: MethodName Extended Data Type
The static method to called.
- Type: container
The container of parameters to pass to the method.
- Type: boolean
Forces to IL even if the tts level is larger than 0.
Return ValueType: container
The result of the method call as a container.
This demands the XppILExecutePermission class and asserts both the RunAsPermissionand ExecutePermission. The call will transition to Xpp IL using runAs if running interpreted. If running as Xpp IL, the method is just called directly. As there may be some overhead, this method should only be used on computationally expensive methods. This method will not transition to IL if the current tts level is larger than 0 (unless forced) because transaction scope does not flow across IL boundaries.IL is also referred to as CIL, for the common intermediate language of the .NET Framework.