NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IsolatedStorageFileStream Constructor (String, FileMode, FileAccess, FileShare, Int32, IsolatedStorageFile)

Initializes a new instance of an IsolatedStorageFileStream object giving access to the file designated by path in the specified mode, access, and share option, with buffer size specified, in a given isolated storage context. Mode indicates if a new file should be created, an existing one used, and so forth. Access includes read-only, read-write, etc.

[Visual Basic]
Overloads Public Sub New( _
   ByVal path As String, _
   ByVal mode As FileMode, _
   ByVal access As FileAccess, _
   ByVal share As FileShare, _
   ByVal bufferSize As Integer, _
   ByVal isf As IsolatedStorageFile _
)
[C#]
public IsolatedStorageFileStream(
   string path,
   FileMode mode,
   FileAccess access,
   FileShare share,
   int bufferSize,
   IsolatedStorageFile isf
);
[C++]
public: IsolatedStorageFileStream(
   String* path,
   FileMode mode,
   FileAccess access,
   FileShare share,
   int bufferSize,
   IsolatedStorageFile* isf
);
[JScript]
public function IsolatedStorageFileStream(
   path : String,
   mode : FileMode,
   access : FileAccess,
   share : FileShare,
   bufferSize : int,
   isf : IsolatedStorageFile
);

Parameters

path
relative path within isolated storage of the file
mode
file open mode requested
access
file access requested
share
file sharing requested
bufferSize
specified buffer size
isf
isolated storage context to open in

Remarks

Not only much code have the necessary IsolatedStoragePermission, but it must have identity in order to access a particular isolated storage instance.

Requirements

NGWS Runtime Security:

IsolatedStorage code must have isolated storage access

See Also

IsolatedStorageFileStream Class | IsolatedStorageFileStream Members | System.IO.IsolatedStorage Namespace | IsolatedStorageFileStream Constructor Overload List