Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IsolatedStorageFileStream.Write Method

Writes a block of bytes to the IsolatedStorageFileStream using data read from a byte array.

[Visual Basic]
Overrides Public Sub Write( _
   ByVal buffer() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer _
public override void Write(
 byte[] buffer,
 int offset,
 int count
public: void Write(
 unsigned char buffer __gc[],
 int offset,
 int count
public override function Write(
   buffer : Byte[],
 offset : int,
 count : int


The buffer to write.
The byte offset in buffer from which to begin.
The maximum number of bytes to write.


Exception Type Condition
IsolatedStorageException The write attempt exceeds the quota for the IsolatedStorageFileStream.


The offset parameter gives the offset of the byte in the buffer at which to begin reading, and the count parameter gives the number of bytes that will be written to this IsolatedStorageFileStream. If the write operation is successful, the current position of the IsolatedStorageFileStream is advanced by the number of bytes written. If an exception occurs, the current position of the IsolatedStorageFileStream is unchanged.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IsolatedStorageFileStream Class | IsolatedStorageFileStream Members | System.IO.IsolatedStorage Namespace

© 2016 Microsoft