XDocument.WriteToAsync(XmlWriter, CancellationToken) Método

Definición

Escribe el árbol XML subyacente de esta clase XDocument en el objeto XmlWriterespecificado.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
Public Overrides Function WriteToAsync (writer As XmlWriter, cancellationToken As CancellationToken) As Task

Parámetros

writer
XmlWriter

Escritor que genera el contenido de esta clase XDocument.The writer to output the content of this XDocument.

cancellationToken
CancellationToken

Token de cancelación.A cancellation token.

Devoluciones

Task

Tarea que representa la operación de escritura asincrónica.A task representing the asynchronous write operation.

Se aplica a