언어

Process.ReadAllBytes(Nullable<TimeSpan>) 메서드

정의

프로세스의 모든 표준 출력 및 표준 오류를 바이트 배열로 읽습니다.

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())

매개 변수

timeout
Nullable<TimeSpan>

스트림이 완전히 읽을 때까지 대기하는 최대 시간입니다. 이면 null무기한 대기합니다.

반품

표준 출력 및 표준 오류 바이트를 포함하는 튜플입니다.

예외

timeout정수 밀리초로 자른 값이 -1 미만이거나 보다 MaxValue큽니다.

표준 출력 또는 표준 오류가 리디렉션되지 않았습니다.

또는

리디렉션된 스트림은 이미 동기 또는 비동기 읽기에 사용되었습니다.

지정된 timeout내에서 작업이 완료되지 않았습니다.

프로세스가 삭제되었습니다.

적용 대상