The Parameters property provides a collection of command line parameters passed to the application. For example, if you call Stonefield Query with the following command:

C:\Program Files\Stonefield Query\SFQuery.exe
   "project=C:\My Application\Project_Data\settings.xml"
   "appdata=C:\My Application\App_Data\applicationsettings.xml"
   user=etaylor password=diamond

or instantiate the Application object using code like this:

Stonefield.Query.Application.Application app =
   new Stonefield.Query.Application.Application(new string[]
   { @"project=C:\My Application\Project_Data\settings.xml", 
   @"appsettings=C:\My Application\App_Data\applicationsettings.xml",
   "user=etaylor",
   "password=diamond" }, null, null);

the collection contains four items: one for the "project" parameter, one for the "appdata" parameter, one for the "user" parameter, and one for the "password" parameter.

Items in the collection have the values as they do on the command line. Using the example above, the first item in the collection is "project=C:\MyApplication\Project_Data\settings.xml." The parameters are logged to the application log file.

A plugin can do anything it wishes with the parameters. The help topic for the AfterSetup method of an Application plugin shows an example that automatically logs in the user specified on the command line in the "user" and "password" parameters.