Writes a sequence of bytes to the stream and advances the current position within this stream by the number of bytes written.
/// is null.
///
/// is less than zero or greater than the length of .
/// -or-
/// The is not large enough to contain bytes strting
/// at the specified .
///
/// The stream has been disposed.
///
/// The stream does not support writing.
///
/// An I/O error occurred.
///