SeekOrigin Enumeration

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

Syntax

Public Enumeration SeekOrigin
public enum SeekOrigin

Members

Member name Description
Begin Specifies the beginning of a stream.
Current Specifies the current position within a stream.
End Specifies the end of a stream.

Remarks

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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

System.IO Namespace