XmlWriter.WriteCharEntity(Char) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈