NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IsolatedStorageFileStream.Write

Writes a block of bytes to this stream using data read from a buffer. The buffer parameter can be an instance of the Buffer class, or an array of one of the following types: Byte, SByte, Char, Int16, Int32, Int64, UInt16, UInt32, UInt64, Single, or Double. The offset parameter gives the offset of the byte in buffer at which to begin reading, and the count parameter gives the maximum number of bytes that will be written to this stream. If the write operation is successful, the current position of the stream is advanced by the number of bytes written. If an exception occurs, the current position of the stream is unchanged.

The Write method treats the buffer parameter as a block of bytes, regardless of its actual type. Likewise, the offset and count parameters are always specified in bytes. For buffer parameters other than byte arrays, this means that an element index must be multiplied by the element size in bytes to form a correct value for offset or count.

[Visual Basic]
Overrides Public Function Write( _
   ByVal buffer() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer _
) As Integer
[C#]
public override int Write(
   byte[] buffer,
   int offset,
   int count
);
[C++]
public: override int Write(
   unsigned char* buffer[],
   int offset,
   int count
);
[JScript]
public override function Write(
   buffer : Byte[],
   offset : int,
   count : int
) : int;

Parameters

buffer
buffer to write from
offset
[To be supplied.]
count
[To be supplied.]

Return Value

Number of bytes written.

See Also

IsolatedStorageFileStream Class | IsolatedStorageFileStream Members | System.IO.IsolatedStorage Namespace