41 lines
2.2 KiB
C#
41 lines
2.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.IO
|
|
{
|
|
/// <summary>Contains constants for controlling the kind of access other <see cref="T:System.IO.FileStream" /> objects can have to the same file.</summary>
|
|
// Token: 0x020002B3 RID: 691
|
|
[Token(Token = "0x20002B3")]
|
|
[Flags]
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public enum FileShare
|
|
{
|
|
/// <summary>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.</summary>
|
|
// Token: 0x04000D7C RID: 3452
|
|
[Token(Token = "0x4000D7C")]
|
|
None = 0,
|
|
/// <summary>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.</summary>
|
|
// Token: 0x04000D7D RID: 3453
|
|
[Token(Token = "0x4000D7D")]
|
|
Read = 1,
|
|
/// <summary>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.</summary>
|
|
// Token: 0x04000D7E RID: 3454
|
|
[Token(Token = "0x4000D7E")]
|
|
Write = 2,
|
|
/// <summary>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.</summary>
|
|
// Token: 0x04000D7F RID: 3455
|
|
[Token(Token = "0x4000D7F")]
|
|
ReadWrite = 3,
|
|
/// <summary>Allows subsequent deleting of a file.</summary>
|
|
// Token: 0x04000D80 RID: 3456
|
|
[Token(Token = "0x4000D80")]
|
|
Delete = 4,
|
|
/// <summary>Makes the file handle inheritable by child processes. This is not directly supported by Win32.</summary>
|
|
// Token: 0x04000D81 RID: 3457
|
|
[Token(Token = "0x4000D81")]
|
|
Inheritable = 16
|
|
}
|
|
}
|