SetLength() public abstract method

When overridden in a derived class, sets the length of the current stream.
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.
public abstract SetLength ( long value ) : void
value long The desired length of the current stream in bytes.
return void
 /// <summary>
 /// When overridden in a derived class, sets the length of the current stream.
 /// </summary>
 /// <param name="value">The desired length of the current stream in bytes. </param><exception cref="T:System.IO.IOException">An I/O error occurs. </exception><exception cref="T:System.NotSupportedException">The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output. </exception><exception cref="T:System.ObjectDisposedException">Methods were called after the stream was closed. </exception><filterpriority>2</filterpriority>
 public override void SetLength(long value)
 {
     BaseStream.SetLength(value);
 }