Writes a subarray of characters to the text stream.
[Visual Basic] Overloads Overridable Public Sub Write( _ ByVal buffer() As Char, _ ByVal index As Integer, _ ByVal count As Integer _ ) [C#] public virtual void Write( char[] buffer, int index, int count ); [C++] public: virtual void Write( __wchar_t* buffer[], int index, int count ); [JScript] public function Write( buffer : Char[], index : int, count : int );
Exception Type | Condition |
---|---|
ArgumentNullException | buffer is a null reference (in Visual Basic Nothing). |
ArgumentException | The buffer length minus index is less than count. |
ArgumentOutOfRangeException | index or count is negative. |
IOException | An I/O error occurs. |
This method will write count characters of data into this writer from the buffer character array starting at position index.
TextWriter Class | TextWriter Members | System.IO Namespace | TextWriter.Write Overload List