singrdk/base/Libraries/System.IO/SeekOrigin.cs

33 lines
1.0 KiB
C#
Raw Permalink Normal View History

2008-03-05 09:52:00 -05:00
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
2008-11-17 18:29:00 -05:00
//============================================================
//
// Enum: SeekOrigin
//
// Purpose: Enum describing locations in a stream you could
// seek relative to.
//
//===========================================================
2008-03-05 09:52:00 -05:00
using System;
2008-11-17 18:29:00 -05:00
namespace System.IO
{
2008-03-05 09:52:00 -05:00
// Provides seek reference points. To seek to the end of a stream,
// call stream.Seek(0, SeekOrigin.End).
//| <include file='doc\SeekOrigin.uex' path='docs/doc[@for="SeekOrigin"]/*' />
public enum SeekOrigin
{
// These constants match Native's FILE_BEGIN, FILE_CURRENT, and FILE_END
//| <include file='doc\SeekOrigin.uex' path='docs/doc[@for="SeekOrigin.Begin"]/*' />
Begin = 0,
//| <include file='doc\SeekOrigin.uex' path='docs/doc[@for="SeekOrigin.Current"]/*' />
Current = 1,
//| <include file='doc\SeekOrigin.uex' path='docs/doc[@for="SeekOrigin.End"]/*' />
End = 2,
}
}