Sets the length of the current stream.
- A long that specifies the desired length of the current stream in bytes.
Type Reason NotSupportedException The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output. ObjectDisposedException The stream is closed. System.IO.IOException An I/O error occurred.
There is no default implementation.