Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Runs the specified method and makes sure that it is executed under X++ IL.
Syntax
server public static container invokeStaticMethodIL(
TableName _tableName,
MethodName _methodName,
container _params,
[boolean _ignoreTtsLevel])
Run On
Server
Parameters
- _tableName
Type: TableName Extended Data Type
The name of the table that contains the method.
- _methodName
Type: MethodName Extended Data Type
The static method to be called.
- _params
Type: container
The container of the parameters to pass to the method.
- _ignoreTtsLevel
Type: boolean
A Boolean value that indicates whether to force to IL even if the TTS level is larger than 0; optional.
Return Value
Type: container
The result of the method invocation as a container.
Remarks
This demands the XppILExecutePermission class and asserts both the RunAsPermission and ExecutePermission classes. The method call will transition to X++ IL using the runAs function if running interpreted. If running as X++ IL already, 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 zero unless it is forced because the transaction scope does not flow across IL boundaries.