System.Diagnostics.Process.StandardInput Property

Gets a stream used to write the input of the application.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.Diagnostics.MonitoringDescription("The standard input stream of this process.")]
public System.IO.StreamWriter StandardInput { get; }

Value

Documentation for this section has not yet been entered.

Remarks

A System.Diagnostics.Process can read input text from its standard input stream, typically the keyboard. By redirecting the Process.StandardInput stream, you can programmatically specify the input. For example, instead of using keyboard input, you can provide text from the contents of a designated file or output from another application.

Note:

To use Process.StandardInput, you must set ProcessStartInfo.UseShellExecute to false, and you must set ProcessStartInfo.RedirectStandardInput to true. Otherwise, writing to the Process.StandardInput stream throws an exception.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0