This documentation is archived and is not being maintained.

IsolatedStorageFileStream.Write Method

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

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

public override void Write (
	byte[] buffer,
	int offset,
	int count
)
public void Write (
	byte[] buffer, 
	int offset, 
	int count
)
public override function Write (
	buffer : byte[], 
	offset : int, 
	count : int
)
Not applicable.

Parameters

buffer

The buffer to write.

offset

The byte offset in buffer from which to begin.

count

The maximum number of bytes to write.

Exception typeCondition

IsolatedStorageException

The write attempt exceeds the quota for the IsolatedStorageFileStream object.

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 object. If the write operation is successful, the current position of the IsolatedStorageFileStream object is advanced by the number of bytes written. If an exception occurs, the current position of the IsolatedStorageFileStream object is unchanged.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Show: