UserToken Class

 

Represents a user-defined token.

For an example of generating code with the CodeGen API look here.

Syntax

Class Name:           public class UserToken

Namespace:          CodeGen.Engine

Assembly:          CodeGenEngineShared.dll (later will move into 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 © 2018  Synergex International, Inc.