Asynchronously writes out an entity reference as &name;.
name The name of the entity reference.
The task that represents the asynchronous WriteEntityRef operation.
This is the asynchronous version of XmlWriter.WriteEntityRef(string), with the same functionality. To use this method, you must set the XmlWriterSettings.Async flag to true.