UserToken
The UserToken class represents a user-defined token.
For an example of generating code with the CodeGen API look here.
Syntax
Definition: public class UserToken
Namespace: CodeGen.Engine
Assembly: CodeGenEngine.dll
Constructors
Name |
Description |
UserToken |
Initializes a new instance of the UserToken class. |
UserToken(String, String) |
Initializes a new instance of the UserToken class for a specified token name / token value pair. |
Properties
Name |
Type |
Description |
Name |
String |
The name the user defined token. |
Value |
String |
The replacement value of the user defined token. |
Example of Use
data favoriteColorToken, @UserToken, new UserToken("FAVORITE_COLOR","Blue")
data task, @CodeGenTask, new CodeGenTask()
task.UserTokens.Add(favoriteColorToken)
Copyright © 2021 Synergex International, Inc.