System.IO.SeekOrigin Enumeration

Specifies the position in a stream to use for seeking.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public enum SeekOrigin

Remarks

System.IO.SeekOrigin is used by the Seek methods of System.IO.Stream, System.IO.BufferedStream, System.IO.FileStream, System.IO.MemoryStream, System.IO.BinaryWriter, and other classes. The Seek methods take an offset parameter that is relative to the position specified by System.IO.SeekOrigin.

Members

Member NameDescription
Begin

Specifies the beginning of a stream.

Current

Specifies the current position within a stream.

End

Specifies the end of a stream.

Requirements

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