IProcessHandle Interface
Represents a process handle used by ProcessWrapper.
public interface IProcessHandle : IDisposable- Implements
Properties
| Name | Description |
|---|---|
| ErrorStream | Gets the process standard error stream. |
| ExitCode | Gets the process exit code. |
| HasExited | Gets a value indicating whether the process has exited. |
| Id | Gets the process identifier. |
| InputStream | Gets the process standard input stream. |
| OutputStream | Gets the process standard output stream. |
| SafeProcessHandle | Gets the process safe handle, or null if it is not available. |
ErrorStream
ExitCode
HasExited
Id
InputStream
OutputStream
SafeProcessHandle
Gets the process safe handle, or null if it is not available.
SafeProcessHandle? SafeProcessHandle { get; }Property value
Methods
| Name | Description |
|---|---|
| Kill(bool) | Kills the process. |
| Start() | Starts the process. |
| WaitForExitAsync(CancellationToken) | Asynchronously waits for the process to exit. |
Kill(bool)
Start()
WaitForExitAsync(CancellationToken)
Asynchronously waits for the process to exit.
Task WaitForExitAsync(CancellationToken cancellationToken)