System.Xml.XmlWriter.WriteAttributeStringAsync Method

Asynchronously writes out the attribute with the specified prefix, local name, namespace URI, and value.

Syntax

public System.Threading.Tasks.Task WriteAttributeStringAsync (string prefix, string localName, string ns, string value)

Parameters

prefix
The namespace prefix of the attribute.
localName
The local name of the attribute.
ns
The namespace URI of the attribute.
value
The value of the attribute.

Returns

The task that represents the asynchronous WriteAttributeString operation.

Remarks

This is the asynchronous version of XmlWriter.WriteAttributeString(string, string, string, string), 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