FileStream.Seek Method

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

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public override long Seek (
         long offset,
         SeekOrigin origin
)

Parameters

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

Return Value

The new position in the stream.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

FileStream Class
FileStream Members
System.IO Namespace