Writes a block of bytes to the current stream using data from a buffer.
Assembly: System.Core (in System.Core.dll)
buffer is null.
offset is less than 0.
count is less than 0.
count is greater than the number of bytes available in buffer.
The pipe is closed.
The pipe does not support write operations.
The pipe is broken or another I/O error occurred.