Console.IsInputRedirected Property


Gets a value that indicates whether input has been redirected from the standard input stream.

 static property bool IsInputRedirected { bool get(); };
public static bool IsInputRedirected { get; }
member this.IsInputRedirected : bool
Public Shared ReadOnly Property IsInputRedirected As Boolean

Property Value

true if input is redirected; otherwise, false.

Applies to

See also