Sets the position within the stream.
public override long Seek(long offset, SeekOrigin origin)
A byte offset relative to the
A value of type SeekOrigin indicating the reference point used to obtain the new position.
The new position within the stream.
An I/O error occurs.
Methods were called after the stream was closed.
Position is set to a negative number or is greater than the stream length. If you need to increase stream length, use the SetLength method first.