seek Method (ISRandomAccessIO)
In This Topic
Moves the current position for the next read operation to offset. The offset is measured from the beginning of the stream. If the offset is set beyond the currently cached data, the missing data will be read only when a read operation is performed. Setting the offset beyond the end of the data will cause an EOFException only if the data length is currently known, otherwise an IOException will occur when a read operation is attempted at that position.
Syntax
'Declaration
Public Overridable Sub seek( _
ByVal As Integer _
)
public virtual void seek(
int
)
Parameters
- off
- The offset where to move to.
Exceptions
Exception | Description |
EOFException | If seeking beyond EOF and the data length is
known.
|
IOException | If an I/O error ocurred.
|
See Also