SeekOrigin Enumeration

July 28, 2014

Provides the fields that represent reference points in streams for seeking.

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

public enum SeekOrigin

Member nameDescription
BeginSpecifies the beginning of a stream.
CurrentSpecifies the current position within a stream.
EndSpecifies the end of a stream.

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft