Console.IsErrorRedirected 属性

定义

获取指示错误输出流是否已经从标准错误流被再定位的值。

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

属性值

Boolean

如果重定向错误,则为true ;否则为 false

适用于

另请参阅