Writes a two-byte unsigned integer to the current stream and advances the stream position by two bytes.
[Visual Basic] Overloads Public Sub Write( _ ByVal value As UInt16 _ ) [C#] public void Write( ushort value ); [C++] public: void Write( unsigned short value ); [JScript] public function Write( value : UInt16 );
Exception Type | Condition |
---|---|
IOException | An I/O error occurs. |
ArgumentNullException | value is a null reference (in Visual Basic Nothing). |
BinaryWriter Class | BinaryWriter Members | System.IO Namespace | BinaryWriter.Write Overload List