Write Method

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 _
)
[C#]
public override void Write(
 byte[] buffer,
 int offset,
 int count
);
[C++]
public: void Write(
 unsigned char buffer __gc[],
 int offset,
 int count
);
[JScript]
public override function Write(
   buffer : Byte[],
 offset : int,
 count : int
);

Parameters

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

Exceptions

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

Remarks

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.

Requirements

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

Show:
© 2016 Microsoft