public class DisposeControllableStream : ProxyStreamPublic Class DisposeControllableStream
Inherits ProxyStreampublic ref class DisposeControllableStream : public ProxyStreamtype DisposeControllableStream =
class
inherit ProxyStream
end| DisposeControllableStream | Поток, который оборачивает заданный оригинальный поток и позволяет выполнить дополнительные действия при его освобождении. |
| CanRead | When overridden in a derived class, gets a value indicating whether the current stream supports reading. (Унаследован от ProxyStream) |
| CanSeek | When overridden in a derived class, gets a value indicating whether the current stream supports seeking. (Унаследован от ProxyStream) |
| CanTimeout | Gets a value that determines whether the current stream can time out. (Унаследован от ProxyStream) |
| CanWrite | When overridden in a derived class, gets a value indicating whether the current stream supports writing. (Унаследован от ProxyStream) |
| Length | When overridden in a derived class, gets the length in bytes of the stream. (Унаследован от ProxyStream) |
| Position | When overridden in a derived class, gets or sets the position within the current stream. (Унаследован от ProxyStream) |
| ReadTimeout | Gets or sets a value, in milliseconds, that determines how long the stream will attempt to read before timing out. (Унаследован от ProxyStream) |
| WriteTimeout | Gets or sets a value, in milliseconds, that determines how long the stream will attempt to write before timing out. (Унаследован от ProxyStream) |
| BeginRead | Begins an asynchronous read operation. (Consider using ReadAsync(Byte, Int32, Int32) instead.) (Унаследован от ProxyStream) |
| BeginWrite | Begins an asynchronous write operation. (Consider using WriteAsync(Byte, Int32, Int32) instead.) (Унаследован от ProxyStream) |
| Close | Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. Instead of calling this method, ensure that the stream is properly disposed. (Унаследован от ProxyStream) |
| CopyTo(Stream) | Reads the bytes from the current stream and writes them to another stream. Both streams positions are advanced by the number of bytes copied. (Унаследован от Stream) |
| CopyTo(Stream, Int32) | Reads the bytes from the current stream and writes them to another stream, using a specified buffer size. Both streams positions are advanced by the number of bytes copied. (Унаследован от ProxyStream) |
| CopyToAsync(Stream) | Asynchronously reads the bytes from the current stream and writes them to another stream. Both streams positions are advanced by the number of bytes copied. (Унаследован от Stream) |
| CopyToAsync(Stream, Int32) | Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size. Both streams positions are advanced by the number of bytes copied. (Унаследован от Stream) |
| CopyToAsync(Stream, CancellationToken) | Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified cancellation token. Both streams positions are advanced by the number of bytes copied. (Унаследован от Stream) |
| CopyToAsync(Stream, Int32, CancellationToken) | Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size and cancellation token. Both streams positions are advanced by the number of bytes copied. (Унаследован от ProxyStream) |
| CreateWaitHandle | Allocates a WaitHandle object. (Унаследован от Stream) |
| Dispose | Releases all resources used by the Stream. (Унаследован от Stream) |
| Dispose(Boolean) | Releases the unmanaged resources used by the Stream and optionally releases the managed resources. (Переопределяет ProxyStreamDispose(Boolean)) |
| DisposeAsync | Asynchronously releases the unmanaged resources used by the Stream. (Переопределяет ProxyStreamDisposeAsync) |
| EndRead | Waits for the pending asynchronous read to complete. (Consider using ReadAsync(Byte, Int32, Int32) instead.) (Унаследован от ProxyStream) |
| EndWrite | Ends an asynchronous write operation. (Consider using WriteAsync(Byte, Int32, Int32) instead.) (Унаследован от ProxyStream) |
| Equals | Determines whether the specified object is equal to the current object. (Унаследован от ProxyStream) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Унаследован от Object) |
| Flush | When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device. (Унаследован от ProxyStream) |
| FlushAsync | Asynchronously clears all buffers for this stream and causes any buffered data to be written to the underlying device. (Унаследован от Stream) |
| FlushAsync(CancellationToken) | Asynchronously clears all buffers for this stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests. (Унаследован от ProxyStream) |
| GetHashCode | Serves as the default hash function. (Унаследован от ProxyStream) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Унаследован от MarshalByRefObject) |
| GetType | Gets the Type of the current instance. (Унаследован от Object) |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Унаследован от MarshalByRefObject) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Унаследован от Object) |
| MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Унаследован от MarshalByRefObject) |
| ObjectInvariant | Provides support for a Contract. (Унаследован от Stream) |
| Read(SpanByte) | When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. (Унаследован от ProxyStream) |
| Read(Byte, Int32, Int32) | When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. (Унаследован от ProxyStream) |
| ReadAsync(MemoryByte, CancellationToken) | Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests. (Унаследован от ProxyStream) |
| ReadAsync(Byte, Int32, Int32) | Asynchronously reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. (Унаследован от Stream) |
| ReadAsync(Byte, Int32, Int32, CancellationToken) | Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests. (Унаследован от ProxyStream) |
| ReadByte | Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream. (Унаследован от ProxyStream) |
| Seek | When overridden in a derived class, sets the position within the current stream. (Унаследован от ProxyStream) |
| SetLength | When overridden in a derived class, sets the length of the current stream. (Унаследован от ProxyStream) |
| ToString | Returns a string that represents the current object. (Унаследован от ProxyStream) |
| Write(ReadOnlySpanByte) | When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. (Унаследован от ProxyStream) |
| Write(Byte, Int32, Int32) | When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. (Унаследован от ProxyStream) |
| WriteAsync(ReadOnlyMemoryByte, CancellationToken) | Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests. (Унаследован от ProxyStream) |
| WriteAsync(Byte, Int32, Int32) | Asynchronously writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. (Унаследован от Stream) |
| WriteAsync(Byte, Int32, Int32, CancellationToken) | Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests. (Унаследован от ProxyStream) |
| WriteByte | Writes a byte to the current position in the stream and advances the position within the stream by one byte. (Унаследован от ProxyStream) |
| AsMemoryStreamAsync |
Возвращает поток stream, преобразованный к типу MemoryStream.
Если его тип отличается от MemoryStream, то его содержимое будет скопировано в созданный объект
MemoryStream, после чего исходный stream будет освобождён,
но только если параметр disposeNonMemoryStream равен true.
(Определяется IOExtensions) |
| CalculateStreamLengthAsync |
Вычисляет длину потока посредством его чтения, но отбрасывая сам контент.
(Определяется IOExtensions) |
| CreateBase64WrapperStream |
Возвращает поток, который оборачивает данные исходного потока в виде UTF-8 строки, содержащей эти данные в base64-форме.
(Определяется IOExtensions) |
| ReadAllBytes |
Выполняет синхронное чтение всех данных потока в виде одного массива байт.
Чтение выполняется до того момента, как поток перестанет возвращать данные,
при этом метод не использует свойство Length
для определения количества считываемых данных.
(Определяется IOExtensions) |
| ReadAllBytesAsync |
Выполняет асинхронное чтение всех данных потока в виде одного массива байт.
Чтение выполняется до того момента, как поток перестанет возвращать данные,
при этом метод не использует свойство Length
для определения количества считываемых данных.
(Определяется IOExtensions) |
| ReadBase64Async |
Возвращает контент потока в формате base64.
(Определяется IOExtensions) |
| ReadBytesExact |
Выполняет чтение данных из потока stream и записывает их в возвращаемый массив байт,
который имеет заданный размер length байт.
(Определяется IOExtensions) |
| ReadBytesExactAsync |
Выполняет асинхронное чтение данных из потока stream и записывает их в возвращаемый массив байт,
который имеет заданный размер length байт.
(Определяется IOExtensions) |
| ReadExact |
Выполняет чтение указанного количества байт из потока в буфер.
В результате выполнения метода либо буфер должен быть заполнен, либо поток завершился раньше, чем данные были прочитаны.
Возвращает количество действительно прочитанных байт, которое может быть меньше указанного количества
только в том случае, если поток завершился.
(Определяется IOExtensions) |
| ReadExactAsync |
Выполняет асинхронное чтение указанного количества байт из потока в буфер.
В результате выполнения метода либо буфер должен быть заполнен, либо поток завершился раньше, чем данные были прочитаны.
Возвращает количество действительно прочитанных байт, которое может быть меньше указанного количества
только в том случае, если поток завершился.
(Определяется IOExtensions) |
| ReadInt32Async |
Выполняет асинхронное чтение целочисленного значения Int32 из потока.
(Определяется IOExtensions) |
| WriteInt32Async |
Выполняет асинхронную запись целочисленного значения Int32 в поток.
(Определяется IOExtensions) |
| WriteTextAsync |
Записывает текст в поток в указанной кодировке. Также записывает преамбулу (BOM) в соответствии
с её наличием в кодировке encoding, что также определяется тем,
что stream находится в нулевой позиции, или если он не сообщает свою позицию,
т.е. CanSeek равно false (по этим же правилам работает StreamWriter).
(Определяется IOExtensions) |
| WriteTextAsync |
Записывает текст в поток в указанной кодировке. Также записывает преамбулу (BOM) в соответствии
с её наличием в кодировке encoding, что также определяется тем,
что stream находится в нулевой позиции, или если он не сообщает свою позицию,
т.е. CanSeek равно false (по этим же правилам работает StreamWriter).
(Определяется IOExtensions) |