Click or drag to resize
StreamExtensions Methods
Methods
  NameDescription
Public methodStatic memberCopyToAsync(Stream, Stream)
Asynchronously reads the bytes from a source stream and writes them to a destination stream.
Public methodStatic memberCopyToAsync(Stream, Stream, Int32)
Asynchronously reads the bytes from a source stream and writes them to a destination stream, using a specified buffer size.
Public methodStatic memberCopyToAsync(Stream, Stream, Int32, CancellationToken)
Asynchronously reads the bytes from a source stream and writes them to a destination stream, using a specified buffer size and cancellation token.
Public methodStatic memberFlushAsync(Stream)
Asynchronously clears all buffers for a stream and causes any buffered data to be written to the underlying device.
Public methodStatic memberFlushAsync(Stream, CancellationToken)
Asynchronously clears all buffers for a stream and causes any buffered data to be written to the underlying device, and monitors cancellation requests.
Public methodStatic memberReadAsync(Stream, Byte, Int32, Int32)
Asynchronously reads a sequence of bytes from a stream and advances the position within the stream by the number of bytes read.
Public methodStatic memberReadAsync(Stream, Byte, Int32, Int32, CancellationToken)
Asynchronously reads a sequence of bytes from a stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests.
Public methodStatic memberWriteAsync(Stream, Byte, Int32, Int32)
Asynchronously writes a sequence of bytes to a stream and advances the position within the stream by the number of bytes written.
Public methodStatic memberWriteAsync(Stream, Byte, Int32, Int32, CancellationToken)
Asynchronously writes a sequence of bytes to a stream, advances the position within the stream by the number of bytes written, and monitors cancellation requests.
Top
See Also