Метод Close в классе System.IO.Stream используется для закрытия текущего потока и освобождения всех связанных ресурсов. После вызова этого метода доступ к потоку и его операциям становится невозможен. Этот метод вызывает метод Dispose, передавая в качестве аргумента значение true, чтобы освободить как управляемые, так и неуправляемые ресурсы, используемые потоком. После вызова метода Close дальнейшее обращение к потоку может вызывать исключение ObjectDisposedException.
C# (CSharp) System.IO.Stream.Close - 31 примеров найдено. Это лучшие примеры C# (CSharp) кода для System.IO.Stream.Close, полученные из open source проектов. Вы можете ставить оценку каждому примеру, чтобы помочь нам улучшить качество примеров.