The Labs \ Source Viewer \ SSCLI \ System.IO \ SeekOrigin

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. /*============================================================
  16. **
  17. ** Enum:  SeekOrigin
  18. **
  19. **
  20. ** Purpose: Enum describing locations in a stream you could
  21. ** seek relative to.
  22. **
  23. **
  24. ===========================================================*/
  25. using System;
  26. namespace System.IO
  27. {
  28.     // Provides seek reference points. To seek to the end of a stream,
  29.     // call stream.Seek(0, SeekOrigin.End).
  30.     [Serializable()]
  31.     [System.Runtime.InteropServices.ComVisible(true)]
  32.     public enum SeekOrigin
  33.     {
  34.         // These constants match Win32's FILE_BEGIN, FILE_CURRENT, and FILE_END
  35.         Begin = 0,
  36.         Current = 1,
  37.         End = 2
  38.     }
  39. }

Developer Fusion