Console.IsOutputRedirected Propriedade
Definição
Obtém um valor que indica se a saída foi redirecionada do fluxo de saída padrão.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; }
member this.IsOutputRedirected : bool
Public Shared ReadOnly Property IsOutputRedirected As Boolean
Valor da propriedade
true se a saída tiver sido redirecionada; caso contrário, false.true if output is redirected; otherwise, false.