Delen via


IContentReader.Seek(Int64, SeekOrigin) Method

Definition

Moves the current "block" to be read to a position relative to a place in the reader.

public:
 void Seek(long offset, System::IO::SeekOrigin origin);
public void Seek (long offset, System.IO.SeekOrigin origin);
abstract member Seek : int64 * System.IO.SeekOrigin -> unit
Public Sub Seek (offset As Long, origin As SeekOrigin)

Parameters

offset
Int64

An offset of the number of blocks to seek from the origin.

origin
SeekOrigin

The place in the stream to start the seek from.

Remarks

The implementation of this method moves the content reader offset number of blocks from the specified origin. See Read(Int64) for a description of what a block is.

Applies to