Click or drag to resize

XsFileStream.Seek Method

X#
Sets the current position of this stream to the given value.

Namespace:  XSharp.IO
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 VIRTUAL METHOD Seek(
	offset AS INT64,
	origin AS SeekOrigin
) AS INT64
Request Example View Source

Parameters

offset
Type: Int64
The point relative to origin from which to begin seeking.
origin
Type: SeekOrigin
Specifies the beginning, the end, or the current position as a reference point for offset, using a value of type SeekOrigin.

Return Value

Type: Int64
The new position in the stream.
Exceptions
ExceptionCondition
IOExceptionAn I/O error occurred.
NotSupportedExceptionThe stream does not support seeking, such as if the FileStream is constructed from a pipe or console output.
ArgumentExceptionSeeking is attempted before the beginning of the stream.
ObjectDisposedExceptionMethods were called after the stream was closed.
See Also