| TextWriterWrite Method (Char, Int32, Int32) |
Writes a subarray of characters to the text stream.
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntaxpublic virtual void Write(
char[] buffer,
int index,
int count
)
Parameters
- buffer
- Type: SystemChar
The character array to write data from. - index
- Type: SystemInt32
Starting index in the buffer. - count
- Type: SystemInt32
The number of characters to write.
Exceptions| Exception | Condition |
|---|
| ArgumentException | The buffer length minus index is less than count. |
| ArgumentNullException | The buffer parameter is null. |
| ArgumentOutOfRangeException | index or count is negative. |
| ObjectDisposedException | The TextWriter is closed. |
| IOException | An I/O error occurs. |
See Also