Forces the generation of a surrogate character entity for the specified string value.
A surrogate pair is defined as character code consisting of a sequence of two Unicode values, where the first value is a high-surrogate and the second value is a low-surrogate. The lowChar and highChar parameters must be a valid surrogate character pair, otherwise an error is returned and the writer does not produce output. The writer writes surrogate pairs in hexadecimal format.
The following code example produces a surrogate pair:
For more information about writing surrogate pair characters, see WriteChars.