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 (Byte[], Int32, Int32)


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


Type: System.Byte[]

The buffer to write.

Type: System.Int32

The byte offset in buffer from which to begin.

Type: System.Int32

The maximum number of bytes to write.

Exception Condition

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.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2016 Microsoft