System.Xml.XmlWriter.WriteProcessingInstructionAsync Method

Asynchronously writes out a processing instruction with a space between the name and text as follows: <?name text?>.

Syntax

public virtual System.Threading.Tasks.Task WriteProcessingInstructionAsync (string name, string text)

Parameters

name
The name of the processing instruction.
text
The text to include in the processing instruction.

Returns

The task that represents the asynchronous WriteProcessingInstruction operation.

Remarks

This is the asynchronous version of XmlWriter.WriteProcessingInstruction(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