ProcessExtensions.StartProcessAsync Method

Definition

Overloads

StartProcessAsync(Process, ProcessStartInfo, Boolean, CancellationToken)

Starts a process asynchronously.

C#
public static System.Threading.Tasks.Task<Microsoft.MixedReality.Toolkit.Utilities.ProcessResult> StartProcessAsync(this System.Diagnostics.Process process, System.Diagnostics.ProcessStartInfo startInfo, bool showDebug = false, System.Threading.CancellationToken cancellationToken = default);

Parameters

process
Process

This Process.

startInfo
ProcessStartInfo

The Process start info.

showDebug
Boolean

Should output debug code to Editor Console?

cancellationToken
CancellationToken

Returns

ProcessResult

Remarks

The provided Process Start Info must not use shell execution, and should redirect the standard output and errors.

Applies to

StartProcessAsync(Process, String, String, Boolean, CancellationToken)

Starts a process asynchronously.

C#
public static System.Threading.Tasks.Task<Microsoft.MixedReality.Toolkit.Utilities.ProcessResult> StartProcessAsync(this System.Diagnostics.Process process, string fileName, string args, bool showDebug = false, System.Threading.CancellationToken cancellationToken = default);

Parameters

process
Process

This Process.

fileName
String

The process executable to run.

args
String

The Process arguments.

showDebug
Boolean

Should output debug code to Editor Console?

cancellationToken
CancellationToken

Returns

ProcessResult

Applies to