XmlWriter.WriteRaw Method (Char, Int32, Int32)
When overridden in a derived class, writes raw markup manually from a character buffer.
Assemblies: System.Xml (in System.Xml.dll)
System.Xml.ReaderWriter (in System.Xml.ReaderWriter.dll)
buffer is null.
index or count is less than zero.
The buffer length minus index is less than count.
An XmlWriter method was called before a previous asynchronous operation finished. In this case, InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.”