XDocument.WriteToAsync(XmlWriter, CancellationToken) XDocument.WriteToAsync(XmlWriter, CancellationToken) XDocument.WriteToAsync(XmlWriter, CancellationToken) Method

Definition

Schreibt die zugrunde liegende XML-Struktur dieser XDocument-Instanz in den angegebenen XmlWriter.Writes this XDocument's underlying XML tree to the specified XmlWriter.

public:
 override System::Threading::Tasks::Task ^ WriteToAsync(System::Xml::XmlWriter ^ writer, System::Threading::CancellationToken cancellationToken);
public override System.Threading.Tasks.Task WriteToAsync (System.Xml.XmlWriter writer, System.Threading.CancellationToken cancellationToken);
override this.WriteToAsync : System.Xml.XmlWriter * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameter

writer
XmlWriter XmlWriter XmlWriter

Der Writer, in den der Inhalt dieses XDocument ausgegeben werden soll.The writer to output the content of this XDocument.

cancellationToken
CancellationToken CancellationToken CancellationToken

Ein Abbruchtoken.A cancellation token.

Gibt zurück

Ein Task, der den asynchronen Schreibvorgang darstellt.A task representing the asynchronous write operation.

Gilt für: