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)

Syntax

Public MustOverride Sub WriteCharEntity ( _
    ch As Char _
)
public abstract void WriteCharEntity(
    char ch
)

Parameters

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

Exceptions

Exception Condition
ArgumentException

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

Remarks

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

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

XmlWriter Class

System.Xml Namespace