WriteCharEntity Method
Collapse the table of content
Expand the table of content

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.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public abstract void WriteCharEntity(
	char ch
)

Parameters

ch
Type: System.Char
The Unicode character for which to generate a character entity.

ExceptionCondition
ArgumentException

The character is in the surrogate pair character range, 0xd800 - 0xdfff.

This method writes the Unicode character in hexadecimal character entity reference format.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft