System.IO.BinaryWriter.Seek Method

Sets the position within the current stream.

Syntax

public virtual long Seek (int offset, SeekOrigin origin)

Parameters

offset
A byte offset relative to origin.
origin
A field of System.IO.SeekOrigin indicating the reference point from which the new position is to be obtained.

Returns

The position with the current stream.

Remarks

For a list of common I/O tasks, see Common I/O Tasks.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0