class · System.Diagnostics
Process
public class System.Diagnostics.Process : System.Any
A program started by this one.
- Tipo
- class
- Espacio de nombres
- System.Diagnostics
- Ensamblado
- System.Core
- Acceso
- public, final
- Archivo fuente
Process.ant
Herencia
- Clases base
-
AnyProcess
Constructores
Propiedades
property Output: System.IO.HandleStream
#
What the program writes to standard output (reads block until it writes or ends).
Métodos
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).
Miembros privados e internos (7)
Miembros heredados (5)
GetTypemétodo de AnyUndescribedmétodo de AnyToStringmétodo de AnyHashmétodo de Anydestroymétodo de Any
Código fuente
Process en Larva HIR, descompilado a partir de su 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
}