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 );
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. |
BinaryWriter Class | BinaryWriter Members | System.IO Namespace | BinaryWriter.Write Overload List