Files
Dec2017-Script-Dump/mscorlib/System/IO/FileShare.cs
T
2026-06-04 11:42:34 +02:00

34 lines
2.0 KiB
C#

using System;
using System.Runtime.InteropServices;
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>
/// <filterpriority>2</filterpriority>
// Token: 0x020001BA RID: 442
[ComVisible(true)]
[Flags]
[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: 0x04000686 RID: 1670
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: 0x04000687 RID: 1671
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: 0x04000688 RID: 1672
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: 0x04000689 RID: 1673
ReadWrite = 3,
/// <summary>Allows subsequent deleting of a file.</summary>
// Token: 0x0400068A RID: 1674
Delete = 4,
/// <summary>Makes the file handle inheritable by child processes. This is not directly supported by Win32.</summary>
// Token: 0x0400068B RID: 1675
Inheritable = 16
}
}