BinaryWriter.Write Method (Char)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Writes a Unicode character to the current stream and advances the current position of the stream in accordance with the Encoding used and the specific characters being written to the stream.
Assembly: mscorlib (in mscorlib.dll)
Public Overridable Sub Write ( _ ch As Char _ )
public virtual void Write( char ch )
The non-surrogate, Unicode character to write.
An I/O error occurs.
The stream is closed.
ch is a single surrogate character.
Because of data formatting conflicts, using this method with the following encodings is not recommended:
Unicode surrogate characters must be written out as pairs together in the same call, not individually. If you require support for surrogate pairs in your application, consider using a character array and the Write method overload.
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0