Share via


XppPrePostArgs.addArg Method

Adds the name and value of the publisher's argument to the XppPrePostArgs instance.

Syntax

Note

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.

  Microsoft Dynamics AX 2012 R3
          public int addArg(str argName, anytype value)

  Microsoft Dynamics AX 2012 R2 (SYS)
          public int addArg(str argName, anytype value)

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public boolean addArg(str _fieldName, anytype _value)

  Microsoft Dynamics AX 2012 (FPK)
          public boolean addArg(str _fieldName, anytype _value)

  Microsoft Dynamics AX 2012 (SYS)
          public boolean addArg(str _fieldName, anytype _value)

Run On

Called

Parameters

  • argName
    Type: str
    A string data type value that specifies the name of the argument to add.
  • value
    Type: anytype
    An anytype data type value to assign to the specified argument.

Return Value

Type: int
An int data type value of 1.

Remarks

This method must never be called explicitly from the pre-handler or post-handler code. This method is reserved for auto-generated code only.

See Also

Reference

XppPrePostArgs Class