
public
static Process
Start(ProcessStartInfo startInfo);
Starts the process resource that is specified by the parameter containing process start information (for example, the file name of the process to start) and associates the resource with a new System.Diagnostics.Process component.
Полное описание ...
Parameters:
startInfo:
The System.Diagnostics.ProcessStartInfo that contains the information that
is used to start the process, including the file name and any command-line
arguments.
Exceptions:
A new System.Diagnostics.Process that is associated with the process resource,
or null if no process resource is started. Note that a new process that’s
started alongside already running instances of the same process will be independent
from the others. In addition, Start may return a non-null Process with its
System.Diagnostics.Process.HasExited property already set to true. In this
case, the started process may have activated an existing instance of itself
and then exited.
Exceptions:
System.InvalidOperationException:
No file name was specified in the startInfo parameter's System.Diagnostics.ProcessStartInfo.FileName
property.-or- The System.Diagnostics.ProcessStartInfo.UseShellExecute property
of the startInfo parameter is true and the System.Diagnostics.ProcessStartInfo.RedirectStandardInput,
System.Diagnostics.ProcessStartInfo.RedirectStandardOutput, or System.Diagnostics.ProcessStartInfo.RedirectStandardError
property is also true.-or-The System.Diagnostics.ProcessStartInfo.UseShellExecute
property of the startInfo parameter is true and the System.Diagnostics.ProcessStartInfo.UserName
property is not null or empty or the System.Diagnostics.ProcessStartInfo.Password
property is not null.
System.ArgumentNullException:
The startInfo parameter is null.
System.ObjectDisposedException:
The process object has already been disposed.
System.IO.FileNotFoundException:
The file specified in the startInfo parameter's System.Diagnostics.ProcessStartInfo.FileName
property could not be found.
System.ComponentModel.Win32Exception:
An error occurred when opening the associated file. -or-The sum of the length
of the arguments and the length of the full path to the process exceeds 2080.
The error message associated with this exception can be one of the following:
"The data area passed to a system call is too small." or "Access is denied."