XElement.WriteToAsync(XmlWriter, CancellationToken) Metoda

Definicja

Asynchronicznie zapisuje to XElement do określonego składnika zapisywania.

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

Parametry

writer
XmlWriter

Pisarz, do których należy to XElement napisać.

cancellationToken
CancellationToken

Token, który może służyć do żądania anulowania operacji asynchronicznej.

Zwraca

Task

Zadanie reprezentujące operację zapisu asynchronicznego.

Dotyczy