Taal

Process.ReadAllBytesAsync(CancellationToken) Methode

Definitie

Asynchroon leest alle standaarduitvoer en standaardfout van het proces als bytematrices.

public System.Threading.Tasks.Task<(byte[] StandardOutput, byte[] StandardError)> ReadAllBytesAsync(System.Threading.CancellationToken cancellationToken = default);
member this.ReadAllBytesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<ValueTuple<byte[], byte[]>>
Public Function ReadAllBytesAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of ValueTuple(Of Byte(), Byte()))

Parameters

cancellationToken
CancellationToken

Een token om de asynchrone bewerking te annuleren.

Retouren

Een taak die de asynchrone leesbewerking vertegenwoordigt. De waarde van de taak bevat een tuple met de standaarduitvoer en standaardfoutbytes.

Uitzonderingen

Standaarduitvoer of standaardfout is niet omgeleid.

– of –

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

De cancellationToken is geannuleerd.

Het proces is verwijderd.

Van toepassing op