This topic has not yet been rated - Rate this topic

FileShare Enumeration

April 12, 2014

Contains constants for controlling the kind of access other IsolatedStorageFileStream objects can have to the same file.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)
[FlagsAttribute]
public enum FileShare
Member nameDescription
DeleteAllows subsequent deleting of a file.
InheritableMakes the file handle inheritable by child processes.
NoneDeclines sharing of the current file. Any request to open the file (by this process or another process) will fail until the file is closed.
ReadAllows 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.
ReadWriteAllows 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.
WriteAllows 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.