共用方式為


SeekOrigin Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Syntax

'Declaration
<ComVisibleAttribute(True)> _
Public Enumeration SeekOrigin
[ComVisibleAttribute(true)]
public enum SeekOrigin

Members

Member name Description
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Begin Specifies the beginning of a stream.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Current Specifies the current position within a stream.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 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

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference