using System; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace System.IO { /// Contains constants for controlling the kind of access other objects can have to the same file. // Token: 0x020002BA RID: 698 [Token(Token = "0x20002BA")] [Flags] [ComVisible(true)] [Serializable] public enum FileShare { /// Declines sharing of the current file. Any request to open the file (by this process or another process) will fail until the file is closed. // Token: 0x04000D86 RID: 3462 [Token(Token = "0x4000D86")] None = 0, /// Allows subsequent opening of the file for reading. If this flag is not specified, any request to open the file for reading (by this process or another process) will fail until the file is closed. However, even if this flag is specified, additional permissions might still be needed to access the file. // Token: 0x04000D87 RID: 3463 [Token(Token = "0x4000D87")] Read = 1, /// Allows subsequent opening of the file for writing. If this flag is not specified, any request to open the file for writing (by this process or another process) will fail until the file is closed. However, even if this flag is specified, additional permissions might still be needed to access the file. // Token: 0x04000D88 RID: 3464 [Token(Token = "0x4000D88")] Write = 2, /// Allows subsequent opening of the file for reading or writing. If this flag is not specified, any request to open the file for reading or writing (by this process or another process) will fail until the file is closed. However, even if this flag is specified, additional permissions might still be needed to access the file. // Token: 0x04000D89 RID: 3465 [Token(Token = "0x4000D89")] ReadWrite = 3, /// Allows subsequent deleting of a file. // Token: 0x04000D8A RID: 3466 [Token(Token = "0x4000D8A")] Delete = 4, /// Makes the file handle inheritable by child processes. This is not directly supported by Win32. // Token: 0x04000D8B RID: 3467 [Token(Token = "0x4000D8B")] Inheritable = 16 } }