IsolatedStorageFileStream Constructor (String, FileMode, FileAccess, IsolatedStorageFile)

Initializes a new instance of the IsolatedStorageFileStream class giving access to the file designated by path in the specified mode, with the specified file access, and in the context of the IsolatedStorageFile specified by isf.

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

Syntax

'Declaration
Public Sub New ( _
    path As String, _
    mode As FileMode, _
    access As FileAccess, _
    isf As IsolatedStorageFile _
)
public IsolatedStorageFileStream(
    string path,
    FileMode mode,
    FileAccess access,
    IsolatedStorageFile isf
)

Parameters

  • path
    Type: System.String
    The relative path of the file within isolated storage.

Exceptions

Exception Condition
IsolatedStorageException

isf has been disposed.

-or-

path is badly formed.

-or-

path is nulla null reference (Nothing in Visual Basic).

-or-

isf is nulla null reference (Nothing in Visual Basic).

-or

The directory in path does not exist.

-or-

No file was found and the mode is set to Open.

Version Information

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

Platforms

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