Returns the passed-in string if all the characters and surrogate pair characters in the string argument are valid XML characters, otherwise null.
- content
- string that contains characters to verify.
Returns the passed-in string if all the characters and surrogate-pair characters in the string argument are valid XML characters, otherwise null.
No other values than the passed in argument should be returned. See tp://go.microsoft.com/fwlink/?LinkID=147985 production [2] Char for details on the allowed characters.
If the parameter is null, an ArgumentNullException will be thrown. If any of the characters are not valid xml characters, an XmlException is thrown with information on the first invalid character encountered.