XNode.WriteToAsync(XmlWriter, CancellationToken) Método

Definición

Escribe el nodo actual en XmlWriter.Writes the current node to an XmlWriter.

public:
 abstract System::Threading::Tasks::Task ^ WriteToAsync(System::Xml::XmlWriter ^ writer, System::Threading::CancellationToken cancellationToken);
public abstract System.Threading.Tasks.Task WriteToAsync (System.Xml.XmlWriter writer, System.Threading.CancellationToken cancellationToken);
abstract member WriteToAsync : System.Xml.XmlWriter * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function WriteToAsync (writer As XmlWriter, cancellationToken As CancellationToken) As Task

Parámetros

writer
XmlWriter

Escritor en el que escribir el nodo actual.The writer to write the current node into.

cancellationToken
CancellationToken

Un token que se puede utilizar para solicitar la cancelación de la operación asincrónica.A token that can be used to request cancellation of the asynchronous operation.

Devoluciones

Task

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

Se aplica a