Export (0) Print
Expand All

XmlWriter.WriteCharEntity Method

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

[Visual Basic]
Public MustOverride Sub WriteCharEntity( _
   ByVal ch As Char _
)
[C#]
public abstract void WriteCharEntity(
 char ch
);
[C++]
public: virtual void WriteCharEntity(
 __wchar_t ch
) = 0;
[JScript]
public abstract function WriteCharEntity(
   ch : Char
);

Parameters

ch
The Unicode character for which to generate a character entity.

Exceptions

Exception Type 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.

Example

See XmlTextWriter.WriteCharEntity for an example using this method.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

XmlWriter Class | XmlWriter Members | System.Xml Namespace

Show:
© 2014 Microsoft