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
Any Process

Constructors

constructor Process(handle: i64)
#

Properties

property Output: System.IO.HandleStream
#

read-only

What the program writes to standard output (reads block until it writes or ends).

property ExitCode: i32
#

read-only

Methods

static method Run(command: System.String<u8>) -> i32
#

static

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
#

static

Starts command with arguments; its standard output is Output.

static method Run(command: System.String<u8>, arguments: System.String<u8>) -> System.Diagnostics.ProcessResult
#

static

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.

method WaitForExit() -> i32
#

Waits for the program to end: its exit code (the output stream is closed with it).

Private and internal members (7)

field handle: i64
#

private

field output: System.IO.HandleStream
#

private

field exitCode: i32
#

private

field exited: bool
#

private

static method StartNative(command: u16[], arguments: u16[]) -> i64
#

private static

static method WaitNative(handle: i64) -> i64
#

private static

static method RunCommand(command: u16[]) -> i64
#

private static

Inherited members (5)

Source

Process as Larva HIR, decompiled from its Larva HIR.

System.Diagnostics.Process.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
}
Esc