Method Seek
Seek(long, SeekOrigin)
When overridden in a derived class, sets the position within the current stream.
Parameters
offset
longA byte offset relative to the
origin
parameter.origin
SeekOrigin A value of type Seek
Origin indicating the reference point used to obtain the new position.
Returns
- long
The new position within the current stream.
Exceptions
- IOException
An I/O error occurs.
- Not
Supported Exception The stream does not support seeking, such as if the stream is constructed from a pipe or console output.
- Object
Disposed Exception Methods were called after the stream was closed.