Partager via


ProcessBuilder Constructors

Definition

Overloads

ProcessBuilder(IList<String>)

Constructs a process builder with the specified operating system program and arguments.

ProcessBuilder(String[])

Constructs a process builder with the specified operating system program and arguments.

ProcessBuilder(IList<String>)

Constructs a process builder with the specified operating system program and arguments.

[Android.Runtime.Register(".ctor", "(Ljava/util/List;)V", "")]
public ProcessBuilder (System.Collections.Generic.IList<string>? command);
[<Android.Runtime.Register(".ctor", "(Ljava/util/List;)V", "")>]
new Java.Lang.ProcessBuilder : System.Collections.Generic.IList<string> -> Java.Lang.ProcessBuilder

Parameters

command
IList<String>

the list containing the program and its arguments

Attributes

Remarks

Constructs a process builder with the specified operating system program and arguments. This constructor does not make a copy of the command list. Subsequent updates to the list will be reflected in the state of the process builder. It is not checked whether command corresponds to a valid operating system command.

Java documentation for java.lang.ProcessBuilder.ProcessBuilder(java.util.List<java.lang.String>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ProcessBuilder(String[])

Constructs a process builder with the specified operating system program and arguments.

[Android.Runtime.Register(".ctor", "([Ljava/lang/String;)V", "")]
public ProcessBuilder (params string[]? command);
[<Android.Runtime.Register(".ctor", "([Ljava/lang/String;)V", "")>]
new Java.Lang.ProcessBuilder : string[] -> Java.Lang.ProcessBuilder

Parameters

command
String[]

a string array containing the program and its arguments

Attributes

Remarks

Java documentation for java.lang.ProcessBuilder.ProcessBuilder(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to