Share via


SysDictClass::invokeStaticMethodIL Method [AX 2012]

Runs the specified method and makes sure that the method is executed under X++ IL.

Syntax

server public static container invokeStaticMethodIL(
    ClassName _className, 
    MethodName _methodName, 
    container _params, 
   [boolean _ignoreTtsLevel])

Run On

Server

Parameters

  • _params
    Type: container
    A container that contains 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
A container that contains the result of the method invocation.

Remarks

This method demands the XppILExecutePermission class and asserts both the RunAsPermission class and the ExecutePermission class. The invocation will transition to X++ IL by using the RunAs function if it is running as interpreted. If it is already running as X++ IL, the method is invoked directly.

As there may be some overhead, this method should only be used on computationally-extensive methods.

This method will not transition to IL if the current TTS level is larger than zero (unless forced) because the transaction scope does not flow across IL boundaries.

See Also

Reference

SysDictClass Class