Process

Overview

Process execution apis.

Location

 

constructor

Default constructor.

 

constructor

 

Process()

 

init()

 

Process()

 

Sub New()

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:

Arguments

Arguments to pass to this process.

 

property Arguments: ImmutableList<String> read write;

 

ImmutableList<String> Arguments { get; set; }

 

var Arguments: ImmutableList<String> { get{} set{} }

 

ImmutableList<String> Arguments { __get; __set; }

 

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.

 

property Environment: ImmutableDictionary<String, String> read write;

 

ImmutableDictionary<String, String> Environment { get; set; }

 

var Environment: ImmutableDictionary<String, String> { get{} set{} }

 

ImmutableDictionary<String, String> Environment { __get; __set; }

 

Property Environment() As ImmutableDictionary<String, String>

Equals (Object): Boolean  virtual    (declared in Object) Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther:

Equals (Object): Boolean  virtual    (declared in Object) UIKit for Mac

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) UIKit for Mac

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

 

Finalize()

 

func Finalize()

 

Finalize()

 

Sub Finalize()

FreeLibrary (IntPtr) Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows

 

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:

FreeLibrary (IntPtr) UIKit for Mac

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

 

class method FreeLibrary(aLibrary: IntPtr)

 

static  FreeLibrary(IntPtr aLibrary)

 

static func FreeLibrary(_ aLibrary: IntPtr)

 

static  FreeLibrary(IntPtr aLibrary)

 

Shared Sub FreeLibrary(aLibrary As IntPtr)

Parameters:

  • aLibrary:

GetCachedProcAddress

 

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

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

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.

 

// UIKit for Mac
property OnErrorData: Action<String> read;
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
property OnErrorData: Action<RemObjects.Elements.System.String> read;

 

// UIKit for Mac
Action<String> OnErrorData { get; }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
Action<RemObjects.Elements.System.String> OnErrorData { get; }

 

// UIKit for Mac
var OnErrorData: Action<String> { get{} }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
var OnErrorData: Action<RemObjects.Elements.System.String> { get{} }

 

// UIKit for Mac
Action<String> OnErrorData { __get; }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
Action<RemObjects.Elements.System.String> OnErrorData { __get; }

 

// UIKit for Mac
ReadOnly Property OnErrorData() As Action<String>
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
ReadOnly Property OnErrorData() As Action<RemObjects.Elements.System.String>

OnFinished

Called when the project is finished running.

 

// UIKit for Mac
property OnFinished: Action<Int32> read;
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
property OnFinished: Action<RemObjects.Elements.System.Int32> read;

 

// UIKit for Mac
Action<Int32> OnFinished { get; }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
Action<RemObjects.Elements.System.Int32> OnFinished { get; }

 

// UIKit for Mac
var OnFinished: Action<Int32> { get{} }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
var OnFinished: Action<RemObjects.Elements.System.Int32> { get{} }

 

// UIKit for Mac
Action<Int32> OnFinished { __get; }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
Action<RemObjects.Elements.System.Int32> OnFinished { __get; }

 

// UIKit for Mac
ReadOnly Property OnFinished() As Action<Int32>
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
ReadOnly Property OnFinished() As Action<RemObjects.Elements.System.Int32>

OnOutputData

Called when STDOUT data is available.

 

// UIKit for Mac
property OnOutputData: Action<String> read;
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
property OnOutputData: Action<RemObjects.Elements.System.String> read;

 

// UIKit for Mac
Action<String> OnOutputData { get; }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
Action<RemObjects.Elements.System.String> OnOutputData { get; }

 

// UIKit for Mac
var OnOutputData: Action<String> { get{} }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
var OnOutputData: Action<RemObjects.Elements.System.String> { get{} }

 

// UIKit for Mac
Action<String> OnOutputData { __get; }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
Action<RemObjects.Elements.System.String> OnOutputData { __get; }

 

// UIKit for Mac
ReadOnly Property OnOutputData() As Action<String>
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
ReadOnly Property OnOutputData() As Action<RemObjects.Elements.System.String>

RedirectInput

 

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

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:

RunAsync

Wrapper around process that runs a process.

 

// UIKit for Mac
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
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
class method RunAsync(aCommand: not nullable String; aArguments: ImmutableList<String>; aEnvironment: nullable ImmutableDictionary<String, String>; aWorkingDirectory: nullable String; aStdOutCallback: Action<RemObjects.Elements.System.String>; aStdErrCallback: Action<RemObjects.Elements.System.String>; aFinishedCallback: Action<RemObjects.Elements.System.Int32>): Process

 

// UIKit for Mac
static Process RunAsync(String! aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String>? aEnvironment, String? aWorkingDirectory, Action<String> aStdOutCallback, Action<String> aStdErrCallback, Action<Int32> aFinishedCallback)
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
static Process RunAsync(String! aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String>? aEnvironment, String? aWorkingDirectory, Action<RemObjects.Elements.System.String> aStdOutCallback, Action<RemObjects.Elements.System.String> aStdErrCallback, Action<RemObjects.Elements.System.Int32> aFinishedCallback)

 

// UIKit for Mac
static func RunAsync(_ aCommand: String, _ aArguments: ImmutableList<String>, _ aEnvironment: ImmutableDictionary<String, String>?, _ aWorkingDirectory: String?, _ aStdOutCallback: Action<String>, _ aStdErrCallback: Action<String>, _ aFinishedCallback: Action<Int32>) -> Process
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
static func RunAsync(_ aCommand: String, _ aArguments: ImmutableList<String>, _ aEnvironment: ImmutableDictionary<String, String>?, _ aWorkingDirectory: String?, _ aStdOutCallback: Action<RemObjects.Elements.System.String>, _ aStdErrCallback: Action<RemObjects.Elements.System.String>, _ aFinishedCallback: Action<RemObjects.Elements.System.Int32>) -> Process

 

// UIKit for Mac
static Process RunAsync(String aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String> aEnvironment, String aWorkingDirectory, Action<String> aStdOutCallback, Action<String> aStdErrCallback, Action<Int32> aFinishedCallback)
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
static Process RunAsync(String aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String> aEnvironment, String aWorkingDirectory, Action<RemObjects.Elements.System.String> aStdOutCallback, Action<RemObjects.Elements.System.String> aStdErrCallback, Action<RemObjects.Elements.System.Int32> aFinishedCallback)

 

// UIKit for Mac
Shared Function RunAsync(aCommand As String, aArguments As ImmutableList<String>, aEnvironment As ImmutableDictionary<String, String>?, aWorkingDirectory As String?, aStdOutCallback As Action<String>, aStdErrCallback As Action<String>, aFinishedCallback As Action<Int32>) As Process
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
Shared Function RunAsync(aCommand As String, aArguments As ImmutableList<String>, aEnvironment As ImmutableDictionary<String, String>?, aWorkingDirectory As String?, aStdOutCallback As Action<RemObjects.Elements.System.String>, aStdErrCallback As Action<RemObjects.Elements.System.String>, aFinishedCallback As Action<RemObjects.Elements.System.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

 

property StandardErrorStream: Stream read;

 

Stream StandardErrorStream { get; }

 

var StandardErrorStream: Stream { get{} }

 

Stream StandardErrorStream { __get; }

 

ReadOnly Property StandardErrorStream() As Stream

StandardInputStream

 

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

 

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 UIKit for Mac

Kill the process.

 

method Stop

 

Stop()

 

func Stop()

 

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 UIKit for Mac

Wait for it to finish running.

 

method WaitFor

 

WaitFor()

 

func WaitFor()

 

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.

 

property Arguments: ImmutableList<String> read write;

 

ImmutableList<String> Arguments { get; set; }

 

var Arguments: ImmutableList<String> { get{} set{} }

 

ImmutableList<String> Arguments { __get; __set; }

 

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.

 

property Environment: ImmutableDictionary<String, String> read write;

 

ImmutableDictionary<String, String> Environment { get; set; }

 

var Environment: ImmutableDictionary<String, String> { get{} set{} }

 

ImmutableDictionary<String, String> Environment { __get; __set; }

 

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.

 

// UIKit for Mac
property OnErrorData: Action<String> read;
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
property OnErrorData: Action<RemObjects.Elements.System.String> read;

 

// UIKit for Mac
Action<String> OnErrorData { get; }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
Action<RemObjects.Elements.System.String> OnErrorData { get; }

 

// UIKit for Mac
var OnErrorData: Action<String> { get{} }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
var OnErrorData: Action<RemObjects.Elements.System.String> { get{} }

 

// UIKit for Mac
Action<String> OnErrorData { __get; }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
Action<RemObjects.Elements.System.String> OnErrorData { __get; }

 

// UIKit for Mac
ReadOnly Property OnErrorData() As Action<String>
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
ReadOnly Property OnErrorData() As Action<RemObjects.Elements.System.String>

OnFinished

Called when the project is finished running.

 

// UIKit for Mac
property OnFinished: Action<Int32> read;
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
property OnFinished: Action<RemObjects.Elements.System.Int32> read;

 

// UIKit for Mac
Action<Int32> OnFinished { get; }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
Action<RemObjects.Elements.System.Int32> OnFinished { get; }

 

// UIKit for Mac
var OnFinished: Action<Int32> { get{} }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
var OnFinished: Action<RemObjects.Elements.System.Int32> { get{} }

 

// UIKit for Mac
Action<Int32> OnFinished { __get; }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
Action<RemObjects.Elements.System.Int32> OnFinished { __get; }

 

// UIKit for Mac
ReadOnly Property OnFinished() As Action<Int32>
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
ReadOnly Property OnFinished() As Action<RemObjects.Elements.System.Int32>

OnOutputData

Called when STDOUT data is available.

 

// UIKit for Mac
property OnOutputData: Action<String> read;
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
property OnOutputData: Action<RemObjects.Elements.System.String> read;

 

// UIKit for Mac
Action<String> OnOutputData { get; }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
Action<RemObjects.Elements.System.String> OnOutputData { get; }

 

// UIKit for Mac
var OnOutputData: Action<String> { get{} }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
var OnOutputData: Action<RemObjects.Elements.System.String> { get{} }

 

// UIKit for Mac
Action<String> OnOutputData { __get; }
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
Action<RemObjects.Elements.System.String> OnOutputData { __get; }

 

// UIKit for Mac
ReadOnly Property OnOutputData() As Action<String>
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
ReadOnly Property OnOutputData() As Action<RemObjects.Elements.System.String>

RedirectInput

 

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

 

property StandardErrorStream: Stream read;

 

Stream StandardErrorStream { get; }

 

var StandardErrorStream: Stream { get{} }

 

Stream StandardErrorStream { __get; }

 

ReadOnly Property StandardErrorStream() As Stream

StandardInputStream

 

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

 

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 (IntPtr) Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows

 

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:

FreeLibrary (IntPtr) UIKit for Mac

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

 

class method FreeLibrary(aLibrary: IntPtr)

 

static  FreeLibrary(IntPtr aLibrary)

 

static func FreeLibrary(_ aLibrary: IntPtr)

 

static  FreeLibrary(IntPtr aLibrary)

 

Shared Sub FreeLibrary(aLibrary As IntPtr)

Parameters:

  • aLibrary:

GetCachedProcAddress

 

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

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

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

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:

RunAsync

Wrapper around process that runs a process.

 

// UIKit for Mac
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
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
class method RunAsync(aCommand: not nullable String; aArguments: ImmutableList<String>; aEnvironment: nullable ImmutableDictionary<String, String>; aWorkingDirectory: nullable String; aStdOutCallback: Action<RemObjects.Elements.System.String>; aStdErrCallback: Action<RemObjects.Elements.System.String>; aFinishedCallback: Action<RemObjects.Elements.System.Int32>): Process

 

// UIKit for Mac
static Process RunAsync(String! aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String>? aEnvironment, String? aWorkingDirectory, Action<String> aStdOutCallback, Action<String> aStdErrCallback, Action<Int32> aFinishedCallback)
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
static Process RunAsync(String! aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String>? aEnvironment, String? aWorkingDirectory, Action<RemObjects.Elements.System.String> aStdOutCallback, Action<RemObjects.Elements.System.String> aStdErrCallback, Action<RemObjects.Elements.System.Int32> aFinishedCallback)

 

// UIKit for Mac
static func RunAsync(_ aCommand: String, _ aArguments: ImmutableList<String>, _ aEnvironment: ImmutableDictionary<String, String>?, _ aWorkingDirectory: String?, _ aStdOutCallback: Action<String>, _ aStdErrCallback: Action<String>, _ aFinishedCallback: Action<Int32>) -> Process
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
static func RunAsync(_ aCommand: String, _ aArguments: ImmutableList<String>, _ aEnvironment: ImmutableDictionary<String, String>?, _ aWorkingDirectory: String?, _ aStdOutCallback: Action<RemObjects.Elements.System.String>, _ aStdErrCallback: Action<RemObjects.Elements.System.String>, _ aFinishedCallback: Action<RemObjects.Elements.System.Int32>) -> Process

 

// UIKit for Mac
static Process RunAsync(String aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String> aEnvironment, String aWorkingDirectory, Action<String> aStdOutCallback, Action<String> aStdErrCallback, Action<Int32> aFinishedCallback)
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
static Process RunAsync(String aCommand, ImmutableList<String> aArguments, ImmutableDictionary<String, String> aEnvironment, String aWorkingDirectory, Action<RemObjects.Elements.System.String> aStdOutCallback, Action<RemObjects.Elements.System.String> aStdErrCallback, Action<RemObjects.Elements.System.Int32> aFinishedCallback)

 

// UIKit for Mac
Shared Function RunAsync(aCommand As String, aArguments As ImmutableList<String>, aEnvironment As ImmutableDictionary<String, String>?, aWorkingDirectory As String?, aStdOutCallback As Action<String>, aStdErrCallback As Action<String>, aFinishedCallback As Action<Int32>) As Process
// Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows
Shared Function RunAsync(aCommand As String, aArguments As ImmutableList<String>, aEnvironment As ImmutableDictionary<String, String>?, aWorkingDirectory As String?, aStdOutCallback As Action<RemObjects.Elements.System.String>, aStdErrCallback As Action<RemObjects.Elements.System.String>, aFinishedCallback As Action<RemObjects.Elements.System.Int32>) As Process

Parameters:

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

 

constructor

Default constructor.

 

constructor

 

Process()

 

init()

 

Process()

 

Sub New()

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:

Equals (Object): Boolean  virtual    (declared in Object) Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther:

Equals (Object): Boolean  virtual    (declared in Object) UIKit for Mac

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) UIKit for Mac

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

 

Finalize()

 

func Finalize()

 

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 UIKit for Mac

Kill the process.

 

method Stop

 

Stop()

 

func Stop()

 

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 UIKit for Mac

Wait for it to finish running.

 

method WaitFor

 

WaitFor()

 

func WaitFor()

 

WaitFor()

 

Sub WaitFor()