System.IO.IsolatedStorage.IsolatedStorageFile.OpenFile Method

Opens a file in the specified mode.

Syntax

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

Parameters

path
The relative path of the file within the isolated store.
mode
One of the enumeration values that specifies how to open the file.

Returns

A file that is opened in the specified mode, with read/write access, and is unshared.

Remarks

This method is equivalent to using the IsolatedStorageFileStream.#ctor(string, System.IO.FileMode, IsolatedStorageFile) constructor.

Requirements

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