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

35 lines
1.1 KiB
C#
Raw Normal View History

2008-03-05 09:52:00 -05:00
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*============================================================
**
** Enum: SeekOrigin
**
**
** Purpose: Enum describing locations in a stream you could
** seek relative to.
**
** Date: February 18, 2000
**
===========================================================*/
using System;
namespace System.IO {
// 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,
}
}