Taal

Process.ReadAllText(Nullable<TimeSpan>) Methode

Definitie

Leest alle standaarduitvoer en standaardfout van het proces als tekst.

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)

Parameters

timeout
Nullable<TimeSpan>

De maximale hoeveelheid tijd die moet worden gewacht totdat de streams volledig worden gelezen. Wanneer null, wacht voor onbepaalde tijd.

Retouren

Een tuple met de standaarduitvoer en standaardfouttekst.

Uitzonderingen

timeout, afgekapt tot een geheel aantal milliseconden, kleiner is dan -1 of groter dan MaxValue.

Standaarduitvoer of standaardfout is niet omgeleid.

– of –

Er is al een omgeleide stream gebruikt voor synchrone of asynchrone leesing.

De bewerking is niet voltooid binnen de opgegeven timeout.

Het proces is verwijderd.

Van toepassing op