Sets the length of the stream.
public override void SetLength(long value)
The desired length of the stream in bytes.
An I/O error occurs.
The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output.
Methods were called after the stream was closed.