XmlWriter.WriteRawAsync Method

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Asynchronously writes raw markup manually.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

NameDescription
System_CAPS_pubmethodWriteRawAsync(Char[], Int32, Int32)

Asynchronously writes raw markup manually from a character buffer.

System_CAPS_pubmethodWriteRawAsync(String)

Asynchronously writes raw markup manually from a string.

Exception Condition
InvalidOperationException

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.”

InvalidOperationException

An XmlWriter asynchronous method was called without setting the Async flag to true. In this case, InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.”

This is the asynchronous version of WriteRaw, with the same functionality. To use this method, you must set the Async flag to true.

Return to top
Show: