Class CommandLine
Represents command line arguments passed to an application.
public class CommandLine
- Inheritance
-
CommandLine
- Inherited Members
Constructors
CommandLine(string)
Creates a new CommandLine, parsing the specified command line argument string.
public CommandLine(string cmdLine)
Parameters
cmdLinestringThe command line string to parse.
Exceptions
- RanorexException
If parsing the
cmdLinefails.
Properties
Arguments
A list of non-parameter command line arguments.
public IList<string> Arguments { get; }
Property Value
EnvironmentCommandLine
Gets a command line instance for the Environment.CommandLine.
public static CommandLine EnvironmentCommandLine { get; }
Property Value
Exceptions
- RanorexException
If parsing the Environment.CommandLine fails.
ParameterLists
A dictionary of lists of command line parameters.
For example, the command line /include:a /include:b would result in the dictionary ["include" -> "a", "b"]
public IDictionary<string, List<string>> ParameterLists { get; }
Property Value
Parameters
A name-value dictionary of command line parameters.
public IDictionary<string, string> Parameters { get; }
Property Value
Methods
ToString()
Converts back to a command line string. Arguments are listed before parameters. Both sorted alphabetically to always produce deterministic result.
public override string ToString()
Returns
- string
Alphabetically sorted command line string.