System.IO.IsolatedStorage.IsolatedStorageFileStream.Write Method

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

Syntax

public override void Write (byte[] buffer, int offset, int count)

Parameters

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

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

Requirements

Namespace: System.IO.IsolatedStorage
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0
Since: .NET 2.0