Zeus API Reference - MyGeneration Software

ZeusInput Class

The ZeusInput object contains key/value pairs with any input provided by either the interface code segment, or the application.

For a list of all members of this type, see ZeusInput Members.

System.Object
   Zeus.ZeusInput

public class ZeusInput : IZeusInput

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The ZeusInput object is a data container, similar to a hashtable, that contains all of the input data for use in the template code. Along with the user supplied input, it contains application variables. The application variables MyGeneration populates before executing a template are the following:

__versionThe MyGeneration Application Version.
__defaultTemplatePathThe location of templates that should be displayed in the template browser.
__defaultOutputPathThe default output path.
__dbDriverThe default database driver.
__dbConnectionStringThe default database connection string.
__domainOverrideTrue or false based on the Domain Override setting in the default Application Settings.
__dbTargetThe selected DB Target
__dbTargetMappingFileNameThe DB Targets file path.
__dbLanguageMappingFileNameThe Language Mapping file path.
__languageThe selected language.
__userMetaDataFileNameThe User Meta-Data file path.
The same instance of the ZeusInput object remains in the template context through both the Interface Code Segment and Template Body segment.

Example

VBScript:

            Dim databaseName 
            Dim tableNames
            databaseName = input.Item("cmbDatabase")
            Set tableNames = input.Item("lstTables")
            
JScript:
            var databaseName = input.Item("cmbDatabase"); 
            var tablenames = input.Item("lstTables"); 
            
CSharp:
            string databaseName = input["cmbDatabase"].ToString(); 
            ArrayList tablenames = input["lstTables"] as ArrayList; 
            

Requirements

Namespace: Zeus

Assembly: Zeus (in Zeus.dll)

See Also

ZeusInput Members | Zeus Namespace