public enum FileShare
Object
ValueType
Enum
FileShare
mscorlib
BCL
Specifies the level of access permitted for a file that is already in use.
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 specifiesFileShare.Read
, other threads are permitted to open the file for reading but not for writing.
FlagsAttribute
System.IO Namespace
FileShare Fields
FileShare.None Field
FileShare.Read Field
FileShare.ReadWrite Field
FileShare.Write Field
FileShare.value__ Field
None = 0x0;
Specifies that the file cannot be accessed by additional threads.
System.IO.FileShare Enum, System.IO Namespace
Read = 0x1;
Specifies that additional threads can share read access to the file. This value does not determine whether such access is granted, however.
System.IO.FileShare Enum, System.IO Namespace
ReadWrite = Read | Write;
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.
System.IO.FileShare Enum, System.IO Namespace
Write = 0x2;
Specifies that additional threads can share write access to the file. This value does not determine whether such access is granted, however.
System.IO.FileShare Enum, System.IO Namespace
value__;
System.IO.FileShare Enum, System.IO Namespace