編輯

共用方式為


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