Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)
[FlagsAttribute]
[ComVisibleAttribute(true)]
public enum FileShare
Member nameDescription
Supported by Silverlight for Windows PhoneSupported by Xbox 360NoneDeclines sharing of the current file. Any request to open the file (by this process or another process) will fail until the file is closed.
Supported by Silverlight for Windows PhoneSupported by Xbox 360ReadAllows 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.
Supported by Silverlight for Windows PhoneSupported by Xbox 360WriteAllows 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.
Supported by Silverlight for Windows PhoneSupported by Xbox 360ReadWriteAllows 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.
Supported by Silverlight for Windows PhoneSupported by Xbox 360DeleteAllows subsequent deleting of a file.
Supported by Silverlight for Windows PhoneSupported by Xbox 360InheritableMakes the file handle inheritable by child processes.

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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.