.NET Framework Class Library for Silverlight
FileShare Enumeration
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
Visual Basic (Declaration)
<FlagsAttribute> _ <ComVisibleAttribute(True)> _ Public Enumeration FileShare
C#
[FlagsAttribute] [ComVisibleAttribute(true)] public enum FileShare
Members
| Member name | Description | |
|---|---|---|
|
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. |
|
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. |
|
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. |
|
Delete | Allows subsequent deleting of a file. |
|
Inheritable | Makes the file handle inheritable by child processes. |
Remarks
Specify a FileShare parameter or the IsolatedStorageFileStream.IsolatedStorageFileStream(String, FileMode, FileAccess, FileShare, IsolatedStorageFile) constructor overload.
The FileShare enumeration is not fully supported on a Macintosh computer.
Version Information
Silverlight
Supported in: 5, 4, 3Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0XNA Framework
Supported in: Xbox 360, Windows Phone OS 7.0Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also