System.IO.IsolatedStorage.IsolatedStorageFile.OpenFile Method

Opens a file in the specified mode, with the specified read/write access and sharing permission.

Syntax

[System.Runtime.InteropServices.ComVisible(false)]
public IsolatedStorageFileStream OpenFile (string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share)

Parameters

path
The relative path of the file within the isolated store.
mode
One of the enumeration values that specifies how to open or create the file.
access
One of the enumeration values that specifies whether the file will be opened with read, write, or read/write access
share
A bitwise combination of enumeration values that specify the type of access other System.IO.IsolatedStorage.IsolatedStorageFileStream objects have to this file.

Returns

A file that is opened in the specified mode and access, and with the specified sharing options.

Remarks

Requirements

Namespace: System.IO.IsolatedStorage
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0