Taal

Process.ReadAllBytes(Nullable<TimeSpan>) Methode

Definitie

Leest alle standaarduitvoer en standaardfout van het proces als bytematrices.

public(byte[] StandardOutput, byte[] StandardError) ReadAllBytes(TimeSpan? timeout = default);
member this.ReadAllBytes : Nullable<TimeSpan> -> ValueTuple<byte[], byte[]>
Public Function ReadAllBytes (Optional timeout As Nullable(Of TimeSpan) = Nothing) As ValueTuple(Of Byte(), Byte())

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 standaardfoutbytes.

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