XppPrePostArgs.setReturnValue Method

Sets the publisher's return value.

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 setReturnValue(anytype value)

  Microsoft Dynamics AX 2012 R2 (SYS)
          public int setReturnValue(anytype value)

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public void setReturnValue(anytype _retval)

  Microsoft Dynamics AX 2012 (FPK)
          public void setReturnValue(anytype _retval)

  Microsoft Dynamics AX 2012 (SYS)
          public void setReturnValue(anytype _retval)

Run On

Called

Parameters

  • value
    Type: anytype
    An anytype data type value to assign as the publisher's return value.

Return Value

Type: int
An int data type value of 1.

Remarks

This method is not intended for pre-handlers or for publishers that return void.

See Also

Reference

XppPrePostArgs Class