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 (Byte[], Int32, Int32)

Writes a region of a byte array to the current stream.

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

Parameters

buffer
A byte array containing the data to write.
index
[To be supplied.]
count
[To be supplied.]

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