Process

Overview

Process execution apis.

Location

 

constructor

Default constructor.

 

constructor

 

Process()

 

init()

 

Process()

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)

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)

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; }

Command

Command to execute.

 

property Command: String read write;

 

String Command { get; set; }

 

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

 

String Command { __get; __set; }

CurrentProcessId

Returns the current process' id.

 

class method CurrentProcessId: Int32

 

static Int32 CurrentProcessId()

 

static func CurrentProcessId() -> Int32

 

static Int32 CurrentProcessId()

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; }

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)

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; }

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()

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)

Parameters:

  • aLibrary:

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()

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)

Parameters:

  • aLibrary:
  • aProc:

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

Id

Returns the process id of this instance.

 

property Id: Int32 read;

 

Int32 Id { get; }

 

var Id: Int32 { get{} }

 

Int32 Id { __get; }

IsRunning

returns true if this process is running.

 

property IsRunning: Boolean read;

 

Boolean IsRunning { get; }

 

var IsRunning: Boolean { get{} }

 

Boolean IsRunning { __get; }

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)

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; }

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; }

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; }

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; }

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; }

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)

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)

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)

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)

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)

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; }

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; }

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; }

StandardOutput

Read data from stderr.

 

property StandardOutput: String read;

 

String StandardOutput { get; }

 

var StandardOutput: String { get{} }

 

String StandardOutput { __get; }

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; }

Start

Start the process.

 

method Start: Boolean

 

Boolean Start()

 

func Start() -> Boolean

 

Boolean Start()

Stop

Kill the process.

 

method Stop

 

void Stop()

 

func Stop()

 

void Stop()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

WaitFor

Wait for it to finish running.

 

method WaitFor

 

void WaitFor()

 

func WaitFor()

 

void WaitFor()

WorkingDirectory

Sets the working dir.

 

property WorkingDirectory: String read;

 

String WorkingDirectory { get; }

 

var WorkingDirectory: String { get{} }

 

String WorkingDirectory { __get; }

 

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; }

Command

Command to execute.

 

property Command: String read write;

 

String Command { get; set; }

 

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

 

String Command { __get; __set; }

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; }

ExitCode

Return code when this process is done running.

 

property ExitCode: Int32 read;

 

Int32 ExitCode { get; }

 

var ExitCode: Int32 { get{} }

 

Int32 ExitCode { __get; }

Id

Returns the process id of this instance.

 

property Id: Int32 read;

 

Int32 Id { get; }

 

var Id: Int32 { get{} }

 

Int32 Id { __get; }

IsRunning

returns true if this process is running.

 

property IsRunning: Boolean read;

 

Boolean IsRunning { get; }

 

var IsRunning: Boolean { get{} }

 

Boolean IsRunning { __get; }

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; }

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; }

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; }

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; }

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; }

StandardError

Read data from stdout.

 

property StandardError: String read;

 

String StandardError { get; }

 

var StandardError: String { get{} }

 

String StandardError { __get; }

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; }

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; }

StandardOutput

Read data from stderr.

 

property StandardOutput: String read;

 

String StandardOutput { get; }

 

var StandardOutput: String { get{} }

 

String StandardOutput { __get; }

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; }

WorkingDirectory

Sets the working dir.

 

property WorkingDirectory: String read;

 

String WorkingDirectory { get; }

 

var WorkingDirectory: String { get{} }

 

String WorkingDirectory { __get; }

 

CurrentProcessId

Returns the current process' id.

 

class method CurrentProcessId: Int32

 

static Int32 CurrentProcessId()

 

static func CurrentProcessId() -> Int32

 

static Int32 CurrentProcessId()

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)

Parameters:

  • aLibrary:

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)

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)

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)

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)

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)

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)

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)

Parameters:

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

 

constructor

Default constructor.

 

constructor

 

Process()

 

init()

 

Process()

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)

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)

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)

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()

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()

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

Start

Start the process.

 

method Start: Boolean

 

Boolean Start()

 

func Start() -> Boolean

 

Boolean Start()

Stop

Kill the process.

 

method Stop

 

void Stop()

 

func Stop()

 

void Stop()

ToString  virtual    (declared in Object)

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

WaitFor

Wait for it to finish running.

 

method WaitFor

 

void WaitFor()

 

func WaitFor()

 

void WaitFor()