XmlWriter.WriteCharEntity Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
When overridden in a derived class, forces the generation of a character entity for the specified Unicode character value.
Assembly: System.Xml (in System.Xml.dll)
Parameters
- ch
- Type: System.Char
The Unicode character for which to generate a character entity.
| Exception | Condition |
|---|---|
| ArgumentException | The character is in the surrogate pair character range, 0xd800 - 0xdfff. |
Show: