Export (0) Print
Expand All

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:
virtual void Write(
	array<unsigned char>^ buffer, 
	int offset, 
	int count
) override

Parameters

buffer
Type: array<System::Byte>

The buffer to write.

offset
Type: System::Int32

The byte offset in buffer from which to begin.

count
Type: System::Int32

The maximum number of bytes to write.

ExceptionCondition
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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft