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.
Sets whether the instance is currently serving a pre-handler or a post-handler.
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 setCalledWhen(XppEventHandlerCalledWhen preOrPost)
Microsoft Dynamics AX 2012 R2 (SYS)
public int setCalledWhen(XppEventHandlerCalledWhen preOrPost)
Microsoft Dynamics AX 2012 Feature Pack (SYS)
protected void setCalledWhen(XppEventHandlerCalledWhen _calledWhen)
Microsoft Dynamics AX 2012 (FPK)
protected void setCalledWhen(XppEventHandlerCalledWhen _calledWhen)
Microsoft Dynamics AX 2012 (SYS)
protected void setCalledWhen(XppEventHandlerCalledWhen _calledWhen)
Run On
Called
Parameters
- preOrPost
Type: XppEventHandlerCalledWhen Enumeration
An XppEventHandlerCalledWhen data type value that indicates whether the XppPrePostArgs instance should serve the pre-handlers or the post-handlers.
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 unit testing and auto-generated code only.