FileAccess.cs 1004 B

12345678910111213141516171819202122232425262728
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using System;
  5. namespace System.IO
  6. {
  7. // Contains constants for specifying the access you want for a file.
  8. // You can have Read, Write or ReadWrite access.
  9. //
  10. [Flags]
  11. public enum FileAccess
  12. {
  13. // Specifies read access to the file. Data can be read from the file and
  14. // the file pointer can be moved. Combine with WRITE for read-write access.
  15. Read = 1,
  16. // Specifies write access to the file. Data can be written to the file and
  17. // the file pointer can be moved. Combine with READ for read-write access.
  18. Write = 2,
  19. // Specifies read and write access to the file. Data can be written to the
  20. // file and the file pointer can be moved. Data can also be read from the
  21. // file.
  22. ReadWrite = 3,
  23. }
  24. }