Redigeeri

Jagamisviis:


XmlWriter.WriteCharEntity(Char) Method

Definition

When overridden in a derived class, forces the generation of a character entity for the specified Unicode character value.

public:
 abstract void WriteCharEntity(char ch);
public abstract void WriteCharEntity (char ch);
abstract member WriteCharEntity : char -> unit
Public MustOverride Sub WriteCharEntity (ch As Char)

Parameters

ch
Char

The Unicode character for which to generate a character entity.

Exceptions

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

An XmlWriter method was called before a previous asynchronous operation finished. In this case, InvalidOperationException is thrown with the message "An asynchronous operation is already in progress."

Examples

See XmlTextWriter.WriteCharEntity for an example using this method.

Remarks

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

For the asynchronous version of this method, see WriteCharEntityAsync.

Applies to