Process.ReadAllText(Nullable<TimeSpan>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將流程中所有標準輸出與標準誤讀為文字。
public(string StandardOutput, string StandardError) ReadAllText(TimeSpan? timeout = default);
member this.ReadAllText : Nullable<TimeSpan> -> ValueTuple<string, string>
Public Function ReadAllText (Optional timeout As Nullable(Of TimeSpan) = Nothing) As ValueTuple(Of String, String)
參數
傳回
一個包含標準輸出與標準誤差文本的元組。
例外狀況
timeout截斷為整數毫秒後,小於 -1 或大於 MaxValue。
操作未在指定 timeout範圍內完成。
該程序已被終止。