FileShare Enumeration

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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)

Syntax

<FlagsAttribute> _
Public Enumeration FileShare
[FlagsAttribute]
public enum FileShare

Members

Member name Description
Delete Allows subsequent deleting of a file.
Inheritable Makes the file handle inheritable by child processes.
None 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.
Read 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.
ReadWrite 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.
Write 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.

Remarks

Specify a FileShare parameter or the IsolatedStorageFileStream..::.IsolatedStorageFileStream(String, FileMode, FileAccess, FileShare, IsolatedStorageFile) constructor overload.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

System.IO Namespace

Other Resources

Isolated Storage