Writes the specified region of buffer to the underlying StringBuilder.
This method will write count characters of data to this StringWriter from buffer, starting at position index.
[Visual Basic] Overloads Overrides Public Sub Write( _ ByVal buffer() As Char, _ ByVal index As Integer, _ ByVal count As Integer _ ) [C#] public override void Write( char[] buffer, int index, int count ); [C++] public: override void Write( __wchar_t* buffer[], int index, int count ); [JScript] public override function Write( buffer : Char[], index : int, count : int );
Exception Type | Condition |
---|---|
ArgumentNullException | buffer is a null reference (in Visual Basic Nothing). |
ArgumentOutOfRangeException | index or count is negative. |
ArgumentException | index and count describe an invalid range in buffer. |
IOException | An I/O error occurs. |
StringWriter Class | StringWriter Members | System.IO Namespace | StringWriter.Write Overload List