XDocumentType.WriteToAsync(XmlWriter, CancellationToken) Methode

Definition

Schreibt XDocumentType in die angegebene XmlWriter-Klasse.Writes this XDocumentType 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

Parameter

writer
XmlWriter

Das Writer-Objekt, in das XDocumentType geschrieben werden soll.The writer to write this XDocumentType to.

cancellationToken
CancellationToken

Ein Token, das verwendet werden kann, um den Abbruch des asynchronen Vorgangs anzufordern.A token that can be used to request cancellation of the asynchronous operation.

Gibt zurück

Task

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

Gilt für: