StringWriter.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 the specified region of a character array to this instance of the StringWriter.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- buffer
- Type:
System.Char
[]
The character array to read data from.
- index
- Type: System.Int32
The index at which to begin reading from buffer.
- count
- Type: System.Int32
The maximum number of characters to write.
| Exception | Condition |
|---|---|
| ArgumentNullException | buffer is null. |
| ArgumentOutOfRangeException | index or count is negative. |
| ArgumentException | (index + count)> buffer. Length. |
| ObjectDisposedException | The writer is closed. |
This method overrides TextWriter.Write.
This method writes count characters of data to this StringWriter from buffer, starting at position index.
Show: