class · System.Diagnostics
Process
public class System.Diagnostics.Process : System.Any
A program started by this one.
- Kind
- class
- Namespace
- System.Diagnostics
- Assembly
- System.Core
- Access
- public, final
- Source file
Process.ant
Inheritance
- Base classes
-
AnyProcess
Constructors
Properties
property Output: System.IO.HandleStream
#
What the program writes to standard output (reads block until it writes or ends).
Methods
static method Run(command: System.String<u8>) -> i32
#
Runs a command line through the system's shell, sharing this program's console: its exit code.
static method Start(command: System.String<u8>, arguments: System.String<u8>) -> System.Diagnostics.Process
#
Starts command with arguments; its standard output is Output.
static method Run(command: System.String<u8>, arguments: System.String<u8>) -> System.Diagnostics.ProcessResult
#
Runs command to the end: its exit code and everything it wrote to standard output.
method ReadAll() -> System.String<u8>
#
All the output until the program closes it, as text.
Waits for the program to end: its exit code (the output stream is closed with it).
Private and internal members (7)
Inherited members (5)
GetTypemethod from AnyUndescribedmethod from AnyToStringmethod from AnyHashmethod from Anydestroymethod from Any
Source
Process as Larva HIR, decompiled from its Larva HIR.
// A program started by this one.
public class System.Diagnostics.Process : System.Any
{
field handle: i64
field output: System.IO.HandleStream
field exitCode: i32
field exited: bool
static method StartNative(command: u16[], arguments: u16[]) -> i64
static method WaitNative(handle: i64) -> i64
static method RunCommand(command: u16[]) -> i64
constructor Process(handle: i64)
// Runs a command line through the system's shell, sharing this program's console: its exit code.
static method Run(command: System.String<u8>) -> i32
// Starts `command` with `arguments`; its standard output is `Output`.
static method Start(command: System.String<u8>, arguments: System.String<u8>) -> System.Diagnostics.Process
// Runs `command` to the end: its exit code and everything it wrote to standard output.
static method Run(command: System.String<u8>, arguments: System.String<u8>) -> System.Diagnostics.ProcessResult
// All the output until the program closes it, as text.
method ReadAll() -> System.String<u8>
// Waits for the program to end: its exit code (the output stream is closed with it).
method WaitForExit() -> i32
// What the program writes to standard output (reads block until it writes or ends).
property Output: System.IO.HandleStream
property ExitCode: i32
}