Summary
Executes the given executable to process the given command asynchronously.
Syntax
public static IAsyncResult BeginExecute(string workingDirectory, string executable, ICommand command, KeyValuePair<string, string>[] environmentVariables, IEnumerable<string> specialArguments, AsyncCallback callback)
Parameters
Name |
Type |
Description |
workingDirectory |
string |
The working directory while executing the command.
|
executable |
string |
The full path to and name of the executable to execute.
|
command |
ICommand |
The options to the executable.
|
environmentVariables |
KeyValuePair<string, string>[] |
An array of System.Collections.Generic.KeyValuePair`2 objects, containing environment variable
overrides to use while executing the executable.
|
specialArguments |
IEnumerable<T> |
Any special arguments to pass to the executable, not defined by the command
object, typically common arguments that should always be passed to the executable.
|
callback |
AsyncCallback |
A callback to call when the execution has completed. The System.IAsyncResult.AsyncState value of the
IAsyncResult object passed to the callback will be the
command object.
|
Return Value