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!

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

Writes a section of a character array to the current stream and advances the current position of the stream in accordance with the Encoding used and perhaps the particular characters being written to the stream.

[Visual Basic]
Overloads Public Sub Write( _
   ByVal buffer() As Char, _
   ByVal index As Integer, _
   ByVal count As Integer _
)
[C#]
public void Write(
   char[] buffer,
   int index,
   int count
);
[C++]
public: void Write(
   __wchar_t* buffer[],
   int index,
   int count
);
[JScript]
public function Write(
   buffer : Char[],
   index : int,
   count : int
);

Parameters

buffer
A character array containing the data to write.
index
The index of buffer at which to begin reading.
count
The number of characters to write.

Exceptions

Exception Type Condition
ArgumentException The buffer length minus index is less than count.
ArgumentNullException buffer is a null reference (in Visual Basic Nothing).
ArgumentOutOfRangeException index or count is negative.
IOException An I/O error occurs.

See Also

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