ProcessStartInfo.ArgumentList ProcessStartInfo.ArgumentList ProcessStartInfo.ArgumentList ProcessStartInfo.ArgumentList Property

Definition

Gets a collection of command-line arguments to use when starting the application.

public:
 property System::Collections::ObjectModel::Collection<System::String ^> ^ ArgumentList { System::Collections::ObjectModel::Collection<System::String ^> ^ get(); };
public System.Collections.ObjectModel.Collection<string> ArgumentList { get; }
member this.ArgumentList : System.Collections.ObjectModel.Collection<string>
Public ReadOnly Property ArgumentList As Collection(Of String)

Property Value

A collection of command-line arguments.

Examples

This example adds two arguments to the process start info.

var info = new System.Diagnostics.ProcessStartInfo("names.exe");
info.ArgumentList.Add("-first Mary");
info.ArgumentList.Add("-last Smith");
Dim info As New System.Diagnostics.ProcessStartInfo("names.exe")
info.ArgumentList.Add("-first Mary")
info.ArgumentList.Add("-last Smith")

Remarks

If you use this property to set command-line arguments, Arguments must be set to an empty string.

Applies to