Writes a two-byte unsigned integer to the current stream and advances the stream position by two bytes.
This API is not CLS-compliant.
Assembly: mscorlib (in mscorlib.dll)
[CLSCompliantAttribute(false)] public virtual void Write( ushort value )
public: [CLSCompliantAttribute(false)] virtual void Write( unsigned short value )
[<CLSCompliantAttribute(false)>] abstract Write : value:uint16 -> unit [<CLSCompliantAttribute(false)>] override Write : value:uint16 -> unit
<CLSCompliantAttribute(False)> Public Overridable Sub Write ( value As UShort )
The two-byte unsigned integer to write.
BinaryWriter stores this data type in little endian format.
For a list of common I/O tasks, see Common I/O Tasks.
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1