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

  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. ** Class:  FileAttributes
  18. **
  19. **
  20. ** Purpose: File attribute flags corresponding to NT's flags.
  21. **
  22. **
  23. ===========================================================*/
  24. using System;
  25. namespace System.IO
  26. {
  27.     // File attributes for use with the FileEnumerator class.
  28.     // These constants correspond to the constants in WinNT.h.
  29.     //
  30.     [Flags(), Serializable()]
  31.     [System.Runtime.InteropServices.ComVisible(true)]
  32.     public enum FileAttributes
  33.     {
  34.         // From WinNT.h (FILE_ATTRIBUTE_XXX)
  35.         ReadOnly = 1,
  36.         Hidden = 2,
  37.         System = 4,
  38.         Directory = 16,
  39.         Archive = 32,
  40.         Device = 64,
  41.         Normal = 128,
  42.         Temporary = 256,
  43.         SparseFile = 512,
  44.         ReparsePoint = 1024,
  45.         Compressed = 2048,
  46.         Offline = 4096,
  47.         NotContentIndexed = 8192,
  48.         Encrypted = 16384
  49.     }
  50. }

Developer Fusion