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 като механизъм за обратна връзка за съдържание и ще го заменим с нова система за обратна връзка. За повече информация вижте:Подаване и преглед на обратна връзка за