Process

Overview

Process execution apis.

Location

 

constructor

Default constructor.

 

constructor

 

Process()

 

init()

 

Process()

 

Sub New()

constructor (String, ImmutableList<String>, ImmutableDictionary<String, String>, String) Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Creates a new instance of this class with a given command, arguments and environemnt.

 

constructor(aCommand: String; aArguments: ImmutableList<String>; aEnvironment: ImmutableDictionary<String, String>; aWorkingDirectory: String)

 

Process(String aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String> aEnvironment, String aWorkingDirectory)

 

init(_ aCommand: String, _ aArguments: ImmutableList<String>, _ aEnvironment: ImmutableDictionary<String, String>, _ aWorkingDirectory: String)

 

Process(String aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String> aEnvironment, String aWorkingDirectory)

 

Sub New(aCommand As String, aArguments As ImmutableList<String>, aEnvironment As ImmutableDictionary<String, String>, aWorkingDirectory As String)

Parameters:

  • aCommand:
  • aArguments:
  • aEnvironment:
  • aWorkingDirectory:

constructor (String, List<String>, Dictionary<String, String>, String) watchOS-arm64

Creates a new instance of this class with a given command, arguments and environemnt.

 

constructor(aCommand: String; aArguments: List<String>; aEnvironment: Dictionary<String, String>; aWorkingDirectory: String)

 

Process(String aCommand, List<String> aArguments, Dictionary<String, String> aEnvironment, String aWorkingDirectory)

 

init(_ aCommand: String, _ aArguments: List<String>, _ aEnvironment: Dictionary<String, String>, _ aWorkingDirectory: String)

 

Process(String aCommand, List<String> aArguments, Dictionary<String, String> aEnvironment, String aWorkingDirectory)

 

Sub New(aCommand As String, aArguments As List<String>, aEnvironment As Dictionary<String, String>, aWorkingDirectory As String)

Parameters:

  • aCommand:
  • aArguments:
  • aEnvironment:
  • aWorkingDirectory:

Arguments

Arguments to pass to this process.

 

// watchOS-arm64
property Arguments: List<String> read write;
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
property Arguments: ImmutableList<String> read write;

 

// watchOS-arm64
List<String> Arguments { get; set; }
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
ImmutableList<String> Arguments { get; set; }

 

// watchOS-arm64
var Arguments: List<String> { get{} set{} }
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
var Arguments: ImmutableList<String> { get{} set{} }

 

// watchOS-arm64
List<String> Arguments { __get; __set; }
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
ImmutableList<String> Arguments { __get; __set; }

 

// watchOS-arm64
Property Arguments() As List<String>
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
Property Arguments() As ImmutableList<String>

Command

Command to execute.

 

property Command: String read write;

 

String Command { get; set; }

 

var Command: String { get{} set{} }

 

String Command { __get; __set; }

 

Property Command() As String

CurrentProcessId

Returns the current process' id.

 

class method CurrentProcessId: Int32

 

static Int32 CurrentProcessId()

 

static func CurrentProcessId() -> Int32

 

static Int32 CurrentProcessId()

 

Shared Function CurrentProcessId() As Int32

Environment

Environment to pass.

 

// watchOS-arm64
property Environment: Dictionary<String, String> read write;
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
property Environment: ImmutableDictionary<String, String> read write;

 

// watchOS-arm64
Dictionary<String, String> Environment { get; set; }
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
ImmutableDictionary<String, String> Environment { get; set; }

 

// watchOS-arm64
var Environment: Dictionary<String, String> { get{} set{} }
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
var Environment: ImmutableDictionary<String, String> { get{} set{} }

 

// watchOS-arm64
Dictionary<String, String> Environment { __get; __set; }
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
ImmutableDictionary<String, String> Environment { __get; __set; }

 

// watchOS-arm64
Property Environment() As Dictionary<String, String>
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
Property Environment() As ImmutableDictionary<String, String>

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj: the reference to compare this with.

ExitCode

Return code when this process is done running.

 

property ExitCode: Int32 read;

 

Int32 ExitCode { get; }

 

var ExitCode: Int32 { get{} }

 

Int32 ExitCode { __get; }

 

ReadOnly Property ExitCode() As Int32

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

FreeLibrary Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Free a handle create by LoadLibrary, unloads the target dll.

 

class method FreeLibrary(aLibrary: IntPtr)

 

static void FreeLibrary(IntPtr aLibrary)

 

static func FreeLibrary(_ aLibrary: IntPtr)

 

static void FreeLibrary(IntPtr aLibrary)

 

Shared Sub FreeLibrary(aLibrary As IntPtr)

Parameters:

  • aLibrary:

GetCachedProcAddress Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

 

class method GetCachedProcAddress(aLibrary: String; aSymbol: String): IntPtr

 

static IntPtr GetCachedProcAddress(String aLibrary, String aSymbol)

 

static func GetCachedProcAddress(_ aLibrary: String, _ aSymbol: String) -> IntPtr

 

static IntPtr GetCachedProcAddress(String aLibrary, String aSymbol)

 

Shared Function GetCachedProcAddress(aLibrary As String, aSymbol As String) As IntPtr

Parameters:

  • aLibrary:
  • aSymbol:

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetProcAddress Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Returns the addres of a symbol in a dll/shared library loaded with LoadLibrary.

 

class method GetProcAddress(aLibrary: IntPtr; aProc: String): IntPtr

 

static IntPtr GetProcAddress(IntPtr aLibrary, String aProc)

 

static func GetProcAddress(_ aLibrary: IntPtr, _ aProc: String) -> IntPtr

 

static IntPtr GetProcAddress(IntPtr aLibrary, String aProc)

 

Shared Function GetProcAddress(aLibrary As IntPtr, aProc As String) As IntPtr

Parameters:

  • aLibrary:
  • aProc:

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

Id

Returns the process id of this instance.

 

property Id: Int32 read;

 

Int32 Id { get; }

 

var Id: Int32 { get{} }

 

Int32 Id { __get; }

 

ReadOnly Property Id() As Int32

IsRunning

returns true if this process is running.

 

property IsRunning: Boolean read;

 

Boolean IsRunning { get; }

 

var IsRunning: Boolean { get{} }

 

Boolean IsRunning { __get; }

 

ReadOnly Property IsRunning() As Boolean

LoadLibrary Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Loads a library given a filename; returns 0 on failure.

 

class method LoadLibrary(aLibrary: String): IntPtr

 

static IntPtr LoadLibrary(String aLibrary)

 

static func LoadLibrary(_ aLibrary: String) -> IntPtr

 

static IntPtr LoadLibrary(String aLibrary)

 

Shared Function LoadLibrary(aLibrary As String) As IntPtr

Parameters:

  • aLibrary:

OnErrorData

Called when STDERR data is available.

 

property OnErrorData: Action<String> read;

 

Action<String> OnErrorData { get; }

 

var OnErrorData: Action<String> { get{} }

 

Action1<String> OnErrorData { __get; }

 

ReadOnly Property OnErrorData() As Action (Of String)

OnFinished

Called when the project is finished running.

 

property OnFinished: Action<Int32> read;

 

Action<Int32> OnFinished { get; }

 

var OnFinished: Action<Int32> { get{} }

 

Action1<Int32> OnFinished { __get; }

 

ReadOnly Property OnFinished() As Action (Of Int32)

OnOutputData

Called when STDOUT data is available.

 

property OnOutputData: Action<String> read;

 

Action<String> OnOutputData { get; }

 

var OnOutputData: Action<String> { get{} }

 

Action1<String> OnOutputData { __get; }

 

ReadOnly Property OnOutputData() As Action (Of String)

RedirectInput Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

 

property RedirectInput: Boolean read write;

 

Boolean RedirectInput { get; set; }

 

var RedirectInput: Boolean { get{} set{} }

 

Boolean RedirectInput { __get; __set; }

 

Property RedirectInput() As Boolean

RedirectOutput

Set to true to redirect the output of this process.

 

property RedirectOutput: Boolean read write;

 

Boolean RedirectOutput { get; set; }

 

var RedirectOutput: Boolean { get{} set{} }

 

Boolean RedirectOutput { __get; __set; }

 

Property RedirectOutput() As Boolean

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

Run (not nullable String, ImmutableList<String>, nullable ImmutableDictionary<String, String>, nullable String, String, String): Int32 Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Wrapper around process that runs and waits.

 

class method Run(aCommand: not nullable String; aArguments: ImmutableList<String>; aEnvironment: nullable ImmutableDictionary<String, String>; aWorkingDirectory: nullable String; out aStdOut: String; out aStdErr: String): Int32

 

static Int32 Run(String! aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String>? aEnvironment, String? aWorkingDirectory, out String aStdOut, out String aStdErr)

 

static func Run(_ aCommand: String, _ aArguments: ImmutableList<String>, _ aEnvironment: ImmutableDictionary<String, String>?, _ aWorkingDirectory: String?, _ aStdOut: String, _ aStdErr: String) -> Int32

 

static Int32 Run(String aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String> aEnvironment, String aWorkingDirectory, __out String aStdOut, __out String aStdErr)

 

Shared Function Run(aCommand As String, aArguments As ImmutableList<String>, aEnvironment As ImmutableDictionary<String, String>?, aWorkingDirectory As String?, <OutAttribute> ByRef aStdOut As String, <OutAttribute> ByRef aStdErr As String) As Int32

Parameters:

  • aCommand:
  • aArguments:
  • aEnvironment:
  • aWorkingDirectory:
  • aStdOut:
  • aStdErr:

Run (not nullable String, List<String>, nullable Dictionary<String, String>, nullable String, String, String): Int32 watchOS-arm64

Wrapper around process that runs and waits.

 

class method Run(aCommand: not nullable String; aArguments: List<String>; aEnvironment: nullable Dictionary<String, String>; aWorkingDirectory: nullable String; out aStdOut: String; out aStdErr: String): Int32

 

static Int32 Run(String! aCommand, List<String> aArguments, Dictionary<String, String>? aEnvironment, String? aWorkingDirectory, out String aStdOut, out String aStdErr)

 

static func Run(_ aCommand: String, _ aArguments: List<String>, _ aEnvironment: Dictionary<String, String>?, _ aWorkingDirectory: String?, _ aStdOut: String, _ aStdErr: String) -> Int32

 

static Int32 Run(String aCommand, List<String> aArguments, Dictionary<String, String> aEnvironment, String aWorkingDirectory, __out String aStdOut, __out String aStdErr)

 

Shared Function Run(aCommand As String, aArguments As List<String>, aEnvironment As Dictionary<String, String>?, aWorkingDirectory As String?, <OutAttribute> ByRef aStdOut As String, <OutAttribute> ByRef aStdErr As String) As Int32

Parameters:

  • aCommand:
  • aArguments:
  • aEnvironment:
  • aWorkingDirectory:
  • aStdOut:
  • aStdErr:

RunAsync (not nullable String, ImmutableList<String>, nullable ImmutableDictionary<String, String>, nullable String, Action<String>, Action<String>, Action<Int32>): Process Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Wrapper around process that runs a process.

 

class method RunAsync(aCommand: not nullable String; aArguments: ImmutableList<String>; aEnvironment: nullable ImmutableDictionary<String, String>; aWorkingDirectory: nullable String; aStdOutCallback: Action<String>; aStdErrCallback: Action<String>; aFinishedCallback: Action<Int32>): Process

 

static Process RunAsync(String! aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String>? aEnvironment, String? aWorkingDirectory, Action<String> aStdOutCallback, Action<String> aStdErrCallback, Action<Int32> aFinishedCallback)

 

static func RunAsync(_ aCommand: String, _ aArguments: ImmutableList<String>, _ aEnvironment: ImmutableDictionary<String, String>?, _ aWorkingDirectory: String?, _ aStdOutCallback: Action<String>, _ aStdErrCallback: Action<String>, _ aFinishedCallback: Action<Int32>) -> Process

 

static Process RunAsync(String aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String> aEnvironment, String aWorkingDirectory, Action1<String> aStdOutCallback, Action1<String> aStdErrCallback, Action1<Int32> aFinishedCallback)

 

Shared Function RunAsync(aCommand As String, aArguments As ImmutableList<String>, aEnvironment As ImmutableDictionary<String, String>?, aWorkingDirectory As String?, aStdOutCallback As Action (Of String), aStdErrCallback As Action (Of String), aFinishedCallback As Action (Of Int32)) As Process

Parameters:

  • aCommand:
  • aArguments:
  • aEnvironment:
  • aWorkingDirectory:
  • aStdOutCallback:
  • aStdErrCallback:
  • aFinishedCallback:

RunAsync (not nullable String, List<String>, nullable Dictionary<String, String>, nullable String, Action<String>, Action<String>, Action<Int32>): Process watchOS-arm64

Wrapper around process that runs a process.

 

class method RunAsync(aCommand: not nullable String; aArguments: List<String>; aEnvironment: nullable Dictionary<String, String>; aWorkingDirectory: nullable String; aStdOutCallback: Action<String>; aStdErrCallback: Action<String>; aFinishedCallback: Action<Int32>): Process

 

static Process RunAsync(String! aCommand, List<String> aArguments, Dictionary<String, String>? aEnvironment, String? aWorkingDirectory, Action<String> aStdOutCallback, Action<String> aStdErrCallback, Action<Int32> aFinishedCallback)

 

static func RunAsync(_ aCommand: String, _ aArguments: List<String>, _ aEnvironment: Dictionary<String, String>?, _ aWorkingDirectory: String?, _ aStdOutCallback: Action<String>, _ aStdErrCallback: Action<String>, _ aFinishedCallback: Action<Int32>) -> Process

 

static Process RunAsync(String aCommand, List<String> aArguments, Dictionary<String, String> aEnvironment, String aWorkingDirectory, Action1<String> aStdOutCallback, Action1<String> aStdErrCallback, Action1<Int32> aFinishedCallback)

 

Shared Function RunAsync(aCommand As String, aArguments As List<String>, aEnvironment As Dictionary<String, String>?, aWorkingDirectory As String?, aStdOutCallback As Action (Of String), aStdErrCallback As Action (Of String), aFinishedCallback As Action (Of Int32)) As Process

Parameters:

  • aCommand:
  • aArguments:
  • aEnvironment:
  • aWorkingDirectory:
  • aStdOutCallback:
  • aStdErrCallback:
  • aFinishedCallback:

StandardError

Read data from stdout.

 

property StandardError: String read;

 

String StandardError { get; }

 

var StandardError: String { get{} }

 

String StandardError { __get; }

 

ReadOnly Property StandardError() As String

StandardErrorStream Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

 

property StandardErrorStream: Stream read;

 

Stream StandardErrorStream { get; }

 

var StandardErrorStream: Stream { get{} }

 

Stream StandardErrorStream { __get; }

 

ReadOnly Property StandardErrorStream() As Stream

StandardInputStream Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

 

property StandardInputStream: Stream read;

 

Stream StandardInputStream { get; }

 

var StandardInputStream: Stream { get{} }

 

Stream StandardInputStream { __get; }

 

ReadOnly Property StandardInputStream() As Stream

StandardOutput

Read data from stderr.

 

property StandardOutput: String read;

 

String StandardOutput { get; }

 

var StandardOutput: String { get{} }

 

String StandardOutput { __get; }

 

ReadOnly Property StandardOutput() As String

StandardOutputStream Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

 

property StandardOutputStream: Stream read;

 

Stream StandardOutputStream { get; }

 

var StandardOutputStream: Stream { get{} }

 

Stream StandardOutputStream { __get; }

 

ReadOnly Property StandardOutputStream() As Stream

Start

Start the process.

 

method Start: Boolean

 

Boolean Start()

 

func Start() -> Boolean

 

Boolean Start()

 

Function Start() As Boolean

Stop

Kill the process.

 

method Stop

 

void Stop()

 

func Stop()

 

void Stop()

 

Sub Stop()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

WaitFor

Wait for it to finish running.

 

method WaitFor

 

void WaitFor()

 

func WaitFor()

 

void WaitFor()

 

Sub WaitFor()

WorkingDirectory

Sets the working dir.

 

property WorkingDirectory: String read;

 

String WorkingDirectory { get; }

 

var WorkingDirectory: String { get{} }

 

String WorkingDirectory { __get; }

 

ReadOnly Property WorkingDirectory() As String

 

Arguments

Arguments to pass to this process.

 

// watchOS-arm64
property Arguments: List<String> read write;
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
property Arguments: ImmutableList<String> read write;

 

// watchOS-arm64
List<String> Arguments { get; set; }
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
ImmutableList<String> Arguments { get; set; }

 

// watchOS-arm64
var Arguments: List<String> { get{} set{} }
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
var Arguments: ImmutableList<String> { get{} set{} }

 

// watchOS-arm64
List<String> Arguments { __get; __set; }
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
ImmutableList<String> Arguments { __get; __set; }

 

// watchOS-arm64
Property Arguments() As List<String>
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
Property Arguments() As ImmutableList<String>

Command

Command to execute.

 

property Command: String read write;

 

String Command { get; set; }

 

var Command: String { get{} set{} }

 

String Command { __get; __set; }

 

Property Command() As String

Environment

Environment to pass.

 

// watchOS-arm64
property Environment: Dictionary<String, String> read write;
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
property Environment: ImmutableDictionary<String, String> read write;

 

// watchOS-arm64
Dictionary<String, String> Environment { get; set; }
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
ImmutableDictionary<String, String> Environment { get; set; }

 

// watchOS-arm64
var Environment: Dictionary<String, String> { get{} set{} }
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
var Environment: ImmutableDictionary<String, String> { get{} set{} }

 

// watchOS-arm64
Dictionary<String, String> Environment { __get; __set; }
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
ImmutableDictionary<String, String> Environment { __get; __set; }

 

// watchOS-arm64
Property Environment() As Dictionary<String, String>
// Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows
Property Environment() As ImmutableDictionary<String, String>

ExitCode

Return code when this process is done running.

 

property ExitCode: Int32 read;

 

Int32 ExitCode { get; }

 

var ExitCode: Int32 { get{} }

 

Int32 ExitCode { __get; }

 

ReadOnly Property ExitCode() As Int32

Id

Returns the process id of this instance.

 

property Id: Int32 read;

 

Int32 Id { get; }

 

var Id: Int32 { get{} }

 

Int32 Id { __get; }

 

ReadOnly Property Id() As Int32

IsRunning

returns true if this process is running.

 

property IsRunning: Boolean read;

 

Boolean IsRunning { get; }

 

var IsRunning: Boolean { get{} }

 

Boolean IsRunning { __get; }

 

ReadOnly Property IsRunning() As Boolean

OnErrorData

Called when STDERR data is available.

 

property OnErrorData: Action<String> read;

 

Action<String> OnErrorData { get; }

 

var OnErrorData: Action<String> { get{} }

 

Action1<String> OnErrorData { __get; }

 

ReadOnly Property OnErrorData() As Action (Of String)

OnFinished

Called when the project is finished running.

 

property OnFinished: Action<Int32> read;

 

Action<Int32> OnFinished { get; }

 

var OnFinished: Action<Int32> { get{} }

 

Action1<Int32> OnFinished { __get; }

 

ReadOnly Property OnFinished() As Action (Of Int32)

OnOutputData

Called when STDOUT data is available.

 

property OnOutputData: Action<String> read;

 

Action<String> OnOutputData { get; }

 

var OnOutputData: Action<String> { get{} }

 

Action1<String> OnOutputData { __get; }

 

ReadOnly Property OnOutputData() As Action (Of String)

RedirectInput Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

 

property RedirectInput: Boolean read write;

 

Boolean RedirectInput { get; set; }

 

var RedirectInput: Boolean { get{} set{} }

 

Boolean RedirectInput { __get; __set; }

 

Property RedirectInput() As Boolean

RedirectOutput

Set to true to redirect the output of this process.

 

property RedirectOutput: Boolean read write;

 

Boolean RedirectOutput { get; set; }

 

var RedirectOutput: Boolean { get{} set{} }

 

Boolean RedirectOutput { __get; __set; }

 

Property RedirectOutput() As Boolean

StandardError

Read data from stdout.

 

property StandardError: String read;

 

String StandardError { get; }

 

var StandardError: String { get{} }

 

String StandardError { __get; }

 

ReadOnly Property StandardError() As String

StandardErrorStream Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

 

property StandardErrorStream: Stream read;

 

Stream StandardErrorStream { get; }

 

var StandardErrorStream: Stream { get{} }

 

Stream StandardErrorStream { __get; }

 

ReadOnly Property StandardErrorStream() As Stream

StandardInputStream Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

 

property StandardInputStream: Stream read;

 

Stream StandardInputStream { get; }

 

var StandardInputStream: Stream { get{} }

 

Stream StandardInputStream { __get; }

 

ReadOnly Property StandardInputStream() As Stream

StandardOutput

Read data from stderr.

 

property StandardOutput: String read;

 

String StandardOutput { get; }

 

var StandardOutput: String { get{} }

 

String StandardOutput { __get; }

 

ReadOnly Property StandardOutput() As String

StandardOutputStream Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

 

property StandardOutputStream: Stream read;

 

Stream StandardOutputStream { get; }

 

var StandardOutputStream: Stream { get{} }

 

Stream StandardOutputStream { __get; }

 

ReadOnly Property StandardOutputStream() As Stream

WorkingDirectory

Sets the working dir.

 

property WorkingDirectory: String read;

 

String WorkingDirectory { get; }

 

var WorkingDirectory: String { get{} }

 

String WorkingDirectory { __get; }

 

ReadOnly Property WorkingDirectory() As String

 

CurrentProcessId

Returns the current process' id.

 

class method CurrentProcessId: Int32

 

static Int32 CurrentProcessId()

 

static func CurrentProcessId() -> Int32

 

static Int32 CurrentProcessId()

 

Shared Function CurrentProcessId() As Int32

FreeLibrary Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Free a handle create by LoadLibrary, unloads the target dll.

 

class method FreeLibrary(aLibrary: IntPtr)

 

static void FreeLibrary(IntPtr aLibrary)

 

static func FreeLibrary(_ aLibrary: IntPtr)

 

static void FreeLibrary(IntPtr aLibrary)

 

Shared Sub FreeLibrary(aLibrary As IntPtr)

Parameters:

  • aLibrary:

GetCachedProcAddress Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

 

class method GetCachedProcAddress(aLibrary: String; aSymbol: String): IntPtr

 

static IntPtr GetCachedProcAddress(String aLibrary, String aSymbol)

 

static func GetCachedProcAddress(_ aLibrary: String, _ aSymbol: String) -> IntPtr

 

static IntPtr GetCachedProcAddress(String aLibrary, String aSymbol)

 

Shared Function GetCachedProcAddress(aLibrary As String, aSymbol As String) As IntPtr

Parameters:

  • aLibrary:
  • aSymbol:

GetProcAddress Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Returns the addres of a symbol in a dll/shared library loaded with LoadLibrary.

 

class method GetProcAddress(aLibrary: IntPtr; aProc: String): IntPtr

 

static IntPtr GetProcAddress(IntPtr aLibrary, String aProc)

 

static func GetProcAddress(_ aLibrary: IntPtr, _ aProc: String) -> IntPtr

 

static IntPtr GetProcAddress(IntPtr aLibrary, String aProc)

 

Shared Function GetProcAddress(aLibrary As IntPtr, aProc As String) As IntPtr

Parameters:

  • aLibrary:
  • aProc:

LoadLibrary Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Loads a library given a filename; returns 0 on failure.

 

class method LoadLibrary(aLibrary: String): IntPtr

 

static IntPtr LoadLibrary(String aLibrary)

 

static func LoadLibrary(_ aLibrary: String) -> IntPtr

 

static IntPtr LoadLibrary(String aLibrary)

 

Shared Function LoadLibrary(aLibrary As String) As IntPtr

Parameters:

  • aLibrary:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

Run (not nullable String, ImmutableList<String>, nullable ImmutableDictionary<String, String>, nullable String, String, String): Int32 Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Wrapper around process that runs and waits.

 

class method Run(aCommand: not nullable String; aArguments: ImmutableList<String>; aEnvironment: nullable ImmutableDictionary<String, String>; aWorkingDirectory: nullable String; out aStdOut: String; out aStdErr: String): Int32

 

static Int32 Run(String! aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String>? aEnvironment, String? aWorkingDirectory, out String aStdOut, out String aStdErr)

 

static func Run(_ aCommand: String, _ aArguments: ImmutableList<String>, _ aEnvironment: ImmutableDictionary<String, String>?, _ aWorkingDirectory: String?, _ aStdOut: String, _ aStdErr: String) -> Int32

 

static Int32 Run(String aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String> aEnvironment, String aWorkingDirectory, __out String aStdOut, __out String aStdErr)

 

Shared Function Run(aCommand As String, aArguments As ImmutableList<String>, aEnvironment As ImmutableDictionary<String, String>?, aWorkingDirectory As String?, <OutAttribute> ByRef aStdOut As String, <OutAttribute> ByRef aStdErr As String) As Int32

Parameters:

  • aCommand:
  • aArguments:
  • aEnvironment:
  • aWorkingDirectory:
  • aStdOut:
  • aStdErr:

Run (not nullable String, List<String>, nullable Dictionary<String, String>, nullable String, String, String): Int32 watchOS-arm64

Wrapper around process that runs and waits.

 

class method Run(aCommand: not nullable String; aArguments: List<String>; aEnvironment: nullable Dictionary<String, String>; aWorkingDirectory: nullable String; out aStdOut: String; out aStdErr: String): Int32

 

static Int32 Run(String! aCommand, List<String> aArguments, Dictionary<String, String>? aEnvironment, String? aWorkingDirectory, out String aStdOut, out String aStdErr)

 

static func Run(_ aCommand: String, _ aArguments: List<String>, _ aEnvironment: Dictionary<String, String>?, _ aWorkingDirectory: String?, _ aStdOut: String, _ aStdErr: String) -> Int32

 

static Int32 Run(String aCommand, List<String> aArguments, Dictionary<String, String> aEnvironment, String aWorkingDirectory, __out String aStdOut, __out String aStdErr)

 

Shared Function Run(aCommand As String, aArguments As List<String>, aEnvironment As Dictionary<String, String>?, aWorkingDirectory As String?, <OutAttribute> ByRef aStdOut As String, <OutAttribute> ByRef aStdErr As String) As Int32

Parameters:

  • aCommand:
  • aArguments:
  • aEnvironment:
  • aWorkingDirectory:
  • aStdOut:
  • aStdErr:

RunAsync (not nullable String, ImmutableList<String>, nullable ImmutableDictionary<String, String>, nullable String, Action<String>, Action<String>, Action<Int32>): Process Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Wrapper around process that runs a process.

 

class method RunAsync(aCommand: not nullable String; aArguments: ImmutableList<String>; aEnvironment: nullable ImmutableDictionary<String, String>; aWorkingDirectory: nullable String; aStdOutCallback: Action<String>; aStdErrCallback: Action<String>; aFinishedCallback: Action<Int32>): Process

 

static Process RunAsync(String! aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String>? aEnvironment, String? aWorkingDirectory, Action<String> aStdOutCallback, Action<String> aStdErrCallback, Action<Int32> aFinishedCallback)

 

static func RunAsync(_ aCommand: String, _ aArguments: ImmutableList<String>, _ aEnvironment: ImmutableDictionary<String, String>?, _ aWorkingDirectory: String?, _ aStdOutCallback: Action<String>, _ aStdErrCallback: Action<String>, _ aFinishedCallback: Action<Int32>) -> Process

 

static Process RunAsync(String aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String> aEnvironment, String aWorkingDirectory, Action1<String> aStdOutCallback, Action1<String> aStdErrCallback, Action1<Int32> aFinishedCallback)

 

Shared Function RunAsync(aCommand As String, aArguments As ImmutableList<String>, aEnvironment As ImmutableDictionary<String, String>?, aWorkingDirectory As String?, aStdOutCallback As Action (Of String), aStdErrCallback As Action (Of String), aFinishedCallback As Action (Of Int32)) As Process

Parameters:

  • aCommand:
  • aArguments:
  • aEnvironment:
  • aWorkingDirectory:
  • aStdOutCallback:
  • aStdErrCallback:
  • aFinishedCallback:

RunAsync (not nullable String, List<String>, nullable Dictionary<String, String>, nullable String, Action<String>, Action<String>, Action<Int32>): Process watchOS-arm64

Wrapper around process that runs a process.

 

class method RunAsync(aCommand: not nullable String; aArguments: List<String>; aEnvironment: nullable Dictionary<String, String>; aWorkingDirectory: nullable String; aStdOutCallback: Action<String>; aStdErrCallback: Action<String>; aFinishedCallback: Action<Int32>): Process

 

static Process RunAsync(String! aCommand, List<String> aArguments, Dictionary<String, String>? aEnvironment, String? aWorkingDirectory, Action<String> aStdOutCallback, Action<String> aStdErrCallback, Action<Int32> aFinishedCallback)

 

static func RunAsync(_ aCommand: String, _ aArguments: List<String>, _ aEnvironment: Dictionary<String, String>?, _ aWorkingDirectory: String?, _ aStdOutCallback: Action<String>, _ aStdErrCallback: Action<String>, _ aFinishedCallback: Action<Int32>) -> Process

 

static Process RunAsync(String aCommand, List<String> aArguments, Dictionary<String, String> aEnvironment, String aWorkingDirectory, Action1<String> aStdOutCallback, Action1<String> aStdErrCallback, Action1<Int32> aFinishedCallback)

 

Shared Function RunAsync(aCommand As String, aArguments As List<String>, aEnvironment As Dictionary<String, String>?, aWorkingDirectory As String?, aStdOutCallback As Action (Of String), aStdErrCallback As Action (Of String), aFinishedCallback As Action (Of Int32)) As Process

Parameters:

  • aCommand:
  • aArguments:
  • aEnvironment:
  • aWorkingDirectory:
  • aStdOutCallback:
  • aStdErrCallback:
  • aFinishedCallback:

 

constructor

Default constructor.

 

constructor

 

Process()

 

init()

 

Process()

 

Sub New()

constructor (String, ImmutableList<String>, ImmutableDictionary<String, String>, String) Android, iOS, iOS Simulator, macOS, tvOS, tvOS Simulator, Ubuntu, UIKit for Mac, watchOS Simulator, watchOS-arm64_32, watchOS-armv7k, WebAssembly, Windows

Creates a new instance of this class with a given command, arguments and environemnt.

 

constructor(aCommand: String; aArguments: ImmutableList<String>; aEnvironment: ImmutableDictionary<String, String>; aWorkingDirectory: String)

 

Process(String aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String> aEnvironment, String aWorkingDirectory)

 

init(_ aCommand: String, _ aArguments: ImmutableList<String>, _ aEnvironment: ImmutableDictionary<String, String>, _ aWorkingDirectory: String)

 

Process(String aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String> aEnvironment, String aWorkingDirectory)

 

Sub New(aCommand As String, aArguments As ImmutableList<String>, aEnvironment As ImmutableDictionary<String, String>, aWorkingDirectory As String)

Parameters:

  • aCommand:
  • aArguments:
  • aEnvironment:
  • aWorkingDirectory:

constructor (String, List<String>, Dictionary<String, String>, String) watchOS-arm64

Creates a new instance of this class with a given command, arguments and environemnt.

 

constructor(aCommand: String; aArguments: List<String>; aEnvironment: Dictionary<String, String>; aWorkingDirectory: String)

 

Process(String aCommand, List<String> aArguments, Dictionary<String, String> aEnvironment, String aWorkingDirectory)

 

init(_ aCommand: String, _ aArguments: List<String>, _ aEnvironment: Dictionary<String, String>, _ aWorkingDirectory: String)

 

Process(String aCommand, List<String> aArguments, Dictionary<String, String> aEnvironment, String aWorkingDirectory)

 

Sub New(aCommand As String, aArguments As List<String>, aEnvironment As Dictionary<String, String>, aWorkingDirectory As String)

Parameters:

  • aCommand:
  • aArguments:
  • aEnvironment:
  • aWorkingDirectory:

Equals  virtual    (declared in Object)

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object)

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

void Finalize()

 

func Finalize()

 

void Finalize()

 

Sub Finalize()

GetHashCode  virtual    (declared in Object)

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

Start

Start the process.

 

method Start: Boolean

 

Boolean Start()

 

func Start() -> Boolean

 

Boolean Start()

 

Function Start() As Boolean

Stop

Kill the process.

 

method Stop

 

void Stop()

 

func Stop()

 

void Stop()

 

Sub Stop()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

WaitFor

Wait for it to finish running.

 

method WaitFor

 

void WaitFor()

 

func WaitFor()

 

void WaitFor()

 

Sub WaitFor()