NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

StringWriter.Write (Char[], Int32, Int32)

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
);

Parameters

buffer
The character array to read data from.
index
The index at which to begin reading from buffer.
count
The maximum number of characters to write.

Exceptions

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.

See Also

StringWriter Class | StringWriter Members | System.IO Namespace | StringWriter.Write Overload List