This method takes the common language runtime object and converts the input value to the desired output type using the XML Schema definition language (XSD) data type conversion rules.
When the WriteValue method is called, the XmlWriter converts the value to its string representations according to the XML Schema (XSD) data type rules and writes it out using the WriteString method.
If WriteValue is called multiple times in succession, the values are not delimited by a space. You must call WriteWhitespace between calls to WriteValue to insert white space. Pass an array type to the XmlWriter::WriteValue(Object^) overload to write out an array of distinct values.
If this method is called on an XmlWriter instance that outputs text-only, the typed value is serialized to text.
For asynchronous operations, convert the return value of this method to a string and use the WriteStringAsync method.