File Sharing, LAN file sharing
FileShare Enumeration contains constants used to control the access types that other IsolatedStorageFileStream objects can have to the same file. This enumeration has a FlagsAttribute attribute that combines the Member values in bits. (Namespace: System. IO)
Syntax
[FlagsAttribute]
[ComVisibleAttribute(true)]
public enum FileShare
Member
Member name |
Description |
None |
You are not allowed to share the current file. Before the file is closed, any request to open the file will fail. |
Read |
Allow subsequent open file reading. If this flag is not specified, any requests that open the file for reading will fail before the file is closed. |
Write |
Allow subsequent open file writing. If this flag is specified, any request to open the file for writing will fail before the file is closed. |
ReadWrite |
Allow subsequent open files to be read or written. If this flag is not specified, any requests that open the file for reading or writing will fail before the file is closed. |
Delete |
Allow subsequent file deletion. |
Inheritable |
The file handle can be inherited by sub-processes. |