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 Members

Public:

Constructor

IsolatedStorageFileStream Constructor Overloaded. [To be supplied.]

Properties

CanRead [To be supplied.]
CanSeek Property tells if file can be read.
CanWrite Property tells if file can be read.
DataAvailable Property tells if there is data available to be read or not.
Length Returns the length in bytes of the stream.
Position Retrieves the current position of this stream, or sets the current position of this stream to the given value.

Methods

BeginRead (not supported for isolated storage)
BeginWrite (not supported for isolated storage)
Close Releases resources associated with the isolated storage file stream.
EndRead (not supported for isolated storage)
EndWrite (not supported for isolated storage)
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
Flush Updates the file with the current state of the buffer and subsequently clears the buffer.
GetHandle Gets the file handle for the file that the current IsolatedStorageFileStream object encapsulates.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the Object.
Lock (inherited from FileStream) Prevents access by other processes to all or part of a file.
Read Reads a string of bytes from the IsolatedStorageFileStream in isolated storage.
ReadByte Reads a single byte from the IsolatedStorageFileStream in isolated storage.
Seek Sets the current position of this stream to the given value. While some streams may support positioning beyond the length of the stream, others will throw an exception in this case.
SetLength Sets the length of this stream to the given value. If the given value is less than the current length of the stream, the stream is truncated. If the given value is larger than the current length of the stream, the stream is expanded. If the stream is expanded, the contents of the stream between the old and the new length are undefined. A stream must support both writing and seeking for this method to be operational.
ToString (inherited from Object) Returns a String that represents the current Object.
Unlock (inherited from FileStream) Allows access by other processes to all or part of a file that was previously locked.
Write Writes a block of bytes to this stream using data read from a buffer. The buffer parameter can be an instance of the Buffer class, or an array of one of the following types: Byte, SByte, Char, Int16, Int32, Int64, UInt16, UInt32, UInt64, Single, or Double. The offset parameter gives the offset of the byte in buffer at which to begin reading, and the count parameter gives the maximum number of bytes that will be written to this stream. If the write operation is successful, the current position of the stream is advanced by the number of bytes written. If an exception occurs, the current position of the stream is unchanged.

The Write method treats the buffer parameter as a block of bytes, regardless of its actual type. Likewise, the offset and count parameters are always specified in bytes. For buffer parameters other than byte arrays, this means that an element index must be multiplied by the element size in bytes to form a correct value for offset or count.

WriteByte Writes a single byte to the IsolatedStorageFileStream in isolated storage.

Protected:

Methods

CreateWaitHandle (inherited from Stream) Allocates a WaitHandle object efficiently.
Finalize Called by the garbage collector when the current object is ready to be finalized.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

IsolatedStorageFileStream Class | System.IO.IsolatedStorage Namespace