StreamWriter.Write Method (Char, Int32, Int32)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Writes a subarray of characters to the stream.
Assembly: mscorlib (in mscorlib.dll)
buffer is null.
The buffer length minus index is less than count.
index or count is negative.
An I/O error occurs.
This method overrides TextWriter.Write.
The characters are read from buffer beginning at index and continuing through index + (count - 1). All characters are written to the underlying stream unless the end of the underlying stream is reached prematurely. Flush is invoked automatically if AutoFlush is true.