Mono Class Library: System.IO Namespace

System.IO.FileShare Enumeration

Specifies the level of access permitted for a file that is already in use. [Edit]
[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
public enum FileShare

Remarks

This enumeration is used to specify the way in which multiple threads access the same file. The level of access is set by the first thread that requests access to the file. For example, if a thread opens a file and specifies FileShare.Read, other threads are permitted to open the file for reading but not for writing. [Edit]

Members

Member NameDescription
DeleteDocumentation for this section has not yet been entered. [Edit]
InheritableDocumentation for this section has not yet been entered. [Edit]
None Specifies that the file cannot be accessed by additional threads. [Edit]
Read Specifies that additional threads can share read access to the file. This value does not determine whether such access is granted, however. [Edit]
ReadWrite Specifies that additional threads can share read and/or write access to the file. This value does not determine whether such access is granted, however. [Edit]
Write Specifies that additional threads can share write access to the file. This value does not determine whether such access is granted, however. [Edit]

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0