Метод EndRead класса System.IO.Stream используется в C# для окончания асинхронной операции чтения из потока. Он блокирует вызывающий поток до тех пор, пока операция чтения не завершится или произойдет ошибка. Метод возвращает количество байтов, которые были прочитаны из потока. Если чтение завершается, возвращаемое значение равно числу прочитанных байтов. Если при чтении произошла ошибка, возвращаемое значение равно нулю или отрицательному числу. Метод EndRead используется в паре с методом BeginRead для реализации асинхронного чтения данных из потока.
C# (CSharp) System.IO.Stream.EndRead - 21 примеров найдено. Это лучшие примеры C# (CSharp) кода для System.IO.Stream.EndRead, полученные из open source проектов. Вы можете ставить оценку каждому примеру, чтобы помочь нам улучшить качество примеров.