Share via


AifClassGeneratorBase.addToDeclaration Method [AX 2012]

Contains changes to be made to the default class declaration, which is empty.

Syntax

protected void addToDeclaration(str _source)

Run On

Called

Parameters

  • _source
    Type: str
    The code to be added to the class declaration.

Remarks

1. To be overridden by derived classes if it is required.

2. Should not be used for adding variables. To add variables, call the addClassVariable method.

3. The ideal place to call the AddToDeclaration method is from the addCustomPlace method in the derived class.

See Also

Reference

AifClassGeneratorBase Class