Edit

Share via


Console.IsOutputRedirected Property

Definition

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

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

Property Value

true if output is redirected; otherwise, false.

Applies to

See also