Skip to content

AppArguments

The AppArguments class is used to pass arguments to an App. Each app constructor should have the first argument of this class. When starting the Application Center via command line, you can use '-app:MyAppName' switch to start a specific app in a separate window. Each additional switch used in the command line will be present in the 'args' parameter as a property. For example, command line:

$run nodeacta.appsenter.exe -user:root 
                            -password:r123d 
                            -app:HR.Employees
                            -employee:"Stan Smith" 
                            -someParam2
Will produce args in HR.Employers.App constructor with the following properties:

  • args.employe with value "Stan Smith"
  • args.someParam2 with value True
  • args.user with value "root"
  • args.password with value "r123d"
  • args.app with value "HR.Employees"