BinaryWriterWrite Method (UInt16) |
Writes a two-byte unsigned integer to the current stream and advances the stream position by two bytes.
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public virtual void Write(
ushort value
)
Parameters
- value
- Type: SystemUInt16
The two-byte unsigned integer to write.
Exceptions Exception | Condition |
---|
IOException | An I/O error occurs. |
ObjectDisposedException | The stream is closed. |
See Also