Table of Contents

Class Subprocess

Namespace
Gio
Assembly
Gio-2.0.dll
public class Subprocess : Object, IObject, INotifyPropertyChanged, IDisposable, Initable, IHandle, GTypeProvider
Inheritance
Subprocess
Implements
Inherited Members

Constructors

Subprocess(bool, params ConstructArgument[])

protected Subprocess(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

Subprocess(IntPtr, bool)

protected Subprocess(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Methods

CommunicateUtf8(string?, Cancellable?, out string?, out string?)

public bool CommunicateUtf8(string? stdinBuf, Cancellable? cancellable, out string? stdoutBuf, out string? stderrBuf)

Parameters

stdinBuf string
cancellable Cancellable
stdoutBuf string
stderrBuf string

Returns

bool

CommunicateUtf8Finish(AsyncResult, out string?, out string?)

public bool CommunicateUtf8Finish(AsyncResult result, out string? stdoutBuf, out string? stderrBuf)

Parameters

result AsyncResult
stdoutBuf string
stderrBuf string

Returns

bool

ForceExit()

[Version("2.40")]
public void ForceExit()

GetExitStatus()

[Version("2.40")]
public int GetExitStatus()

Returns

int

GetGType()

public static Type GetGType()

Returns

Type

GetIdentifier()

[Version("2.40")]
public string? GetIdentifier()

Returns

string

GetIfExited()

[Version("2.40")]
public bool GetIfExited()

Returns

bool

GetIfSignaled()

[Version("2.40")]
public bool GetIfSignaled()

Returns

bool

GetStatus()

[Version("2.40")]
public int GetStatus()

Returns

int

GetStderrPipe()

[Version("2.40")]
public InputStream? GetStderrPipe()

Returns

InputStream

GetStdinPipe()

[Version("2.40")]
public OutputStream? GetStdinPipe()

Returns

OutputStream

GetStdoutPipe()

[Version("2.40")]
public InputStream? GetStdoutPipe()

Returns

InputStream

GetSuccessful()

[Version("2.40")]
public bool GetSuccessful()

Returns

bool

GetTermSig()

[Version("2.40")]
public int GetTermSig()

Returns

int

Init(Cancellable?)

[Version("2.22")]
public bool Init(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

bool

New(string[], SubprocessFlags)

[Version("2.40")]
public static Subprocess New(string[] argv, SubprocessFlags flags)

Parameters

argv string[]
flags SubprocessFlags

Returns

Subprocess

SendSignal(int)

[Version("2.40")]
public void SendSignal(int signalNum)

Parameters

signalNum int

Wait(Cancellable?)

[Version("2.40")]
public bool Wait(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

bool

WaitCheck(Cancellable?)

[Version("2.40")]
public bool WaitCheck(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

bool

WaitCheckFinish(AsyncResult)

[Version("2.40")]
public bool WaitCheckFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool

WaitFinish(AsyncResult)

[Version("2.40")]
public bool WaitFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool