System.Xml.XmlWriter.WriteAttributesAsync Method

Asynchronously writes out all the attributes found at the current position in the System.Xml.XmlReader.

Syntax

public virtual System.Threading.Tasks.Task WriteAttributesAsync (XmlReader reader, bool defattr)

Parameters

reader
The XmlReader from which to copy the attributes.
defattr
true to copy the default attributes from the XmlReader; otherwise, false.

Returns

The task that represents the asynchronous WriteAttributes operation.

Remarks

This is the asynchronous version of XmlWriter.WriteAttributes(XmlReader, bool), with the same functionality. To use this method, you must set the XmlWriterSettings.Async flag to true.

Requirements

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