[This is preliminary documentation and is subject to change.]

Sets the position within the current stream.

Namespace: Tools.IOt
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public override long Seek(
	long offset,
	SeekOrigin origin
)
Visual Basic
Public Overrides Function Seek ( _
	offset As Long, _
	origin As SeekOrigin _
) As Long
Visual C++
public:
virtual long long Seek(
	long long offset, 
	SeekOrigin origin
) override
F#
abstract Seek : 
        offset:int64 * 
        origin:SeekOrigin -> int64 
override Seek : 
        offset:int64 * 
        origin:SeekOrigin -> int64 
JScript
public override function Seek(
	offset : long, 
	origin : SeekOrigin
) : long

Parameters

offset
Type: System..::..Int64
A byte offset relative to the origin parameter.
origin
Type: System.IO..::..SeekOrigin
A value of type SeekOrigin indicating the reference point used to obtain the new position.

Return Value

The new position within the current stream.

Exceptions

ExceptionCondition
System.IO..::..IOExceptionAn I/O error occurs.
System..::..NotSupportedExceptionThe stream does not support seeking, such as if the stream is constructed from a pipe or console output.
System..::..ObjectDisposedExceptionMethods were called after the stream was closed.

See Also

Collapse/expand Version History

1.5.3

  • Fix: ALways returns zero.