Seek (.NET)

<< Click to Display Table of Contents >>

Navigation:  Memory Streams >

Seek (.NET)

Previous pageReturn to chapter overviewNext page

[Professional Edition and above; .NET only]

Moves the file pointer to the given position.

method override long TVPEStream.Seek(

long offset,

SeekOrigin loc

)

long offset

The new position within the stream. This is relative to the loc parameter, and can be positive or negative.

SeekOrigin loc

A value of type SeekOrigin, which acts as the seek reference point.

Possible values are:

Value

Description

Begin

the beginning of a stream.

Current

Specifies the current position within a stream.

End

Specifies the end of a stream.