Console.IsErrorRedirected 属性

定义

获取指示错误输出流是否已经从标准错误流被再定位的值。Gets a value that indicates whether the error output stream has been redirected from the standard error stream.

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

属性值

如果重定向错误,则为 true;否则为 falsetrue if error output is redirected; otherwise, false.

适用于

另请参阅