XDocument.SaveAsync メソッド

定義

オーバーロード

SaveAsync(XmlWriter, CancellationToken)

この XDocumentXmlWriter に書き込みます。Writes this XDocument to an XmlWriter.

SaveAsync(Stream, SaveOptions, CancellationToken)

この XDocumentStream に出力します。Output this XDocument to a Stream.

SaveAsync(TextWriter, SaveOptions, CancellationToken)

この XDocumentTextWriter に書き込みます。Writes this XDocument to a TextWriter.

SaveAsync(XmlWriter, CancellationToken)

この XDocumentXmlWriter に書き込みます。Writes this XDocument to an XmlWriter.

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

パラメーター

writer
XmlWriter

XML の出力先のライター。The writer to output the XML to.

cancellationToken
CancellationToken

キャンセル トークン。A cancellation token.

戻り値

Task

非同期保存操作を表すタスク。A task representing the asynchronous save operation.

適用対象

SaveAsync(Stream, SaveOptions, CancellationToken)

この XDocumentStream に出力します。Output this XDocument to a Stream.

public:
 System::Threading::Tasks::Task ^ SaveAsync(System::IO::Stream ^ stream, System::Xml::Linq::SaveOptions options, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task SaveAsync (System.IO.Stream stream, System.Xml.Linq.SaveOptions options, System.Threading.CancellationToken cancellationToken);
member this.SaveAsync : System.IO.Stream * System.Xml.Linq.SaveOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SaveAsync (stream As Stream, options As SaveOptions, cancellationToken As CancellationToken) As Task

パラメーター

stream
Stream

XML が書き込まれるストリーム。The stream to write the XML to.

options
SaveOptions

読み込みオプションのセット。A set of load options.

cancellationToken
CancellationToken

キャンセル トークン。A cancellation token.

戻り値

Task

非同期保存操作を表すタスク。A task representing the asynchronous save operation.

注釈

を設定した場合 SaveOptions.DisableFormatting 、出力はインデントされません。If SaveOptions.DisableFormatting is set, the output is not indented. SaveOptions.OmitDuplicateNamespacesが設定されている場合は、重複する名前空間宣言が削除されます。If SaveOptions.OmitDuplicateNamespaces is set, duplicate namespace declarations will be removed.

適用対象

SaveAsync(TextWriter, SaveOptions, CancellationToken)

この XDocumentTextWriter に書き込みます。Writes this XDocument to a TextWriter.

public:
 System::Threading::Tasks::Task ^ SaveAsync(System::IO::TextWriter ^ textWriter, System::Xml::Linq::SaveOptions options, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task SaveAsync (System.IO.TextWriter textWriter, System.Xml.Linq.SaveOptions options, System.Threading.CancellationToken cancellationToken);
member this.SaveAsync : System.IO.TextWriter * System.Xml.Linq.SaveOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SaveAsync (textWriter As TextWriter, options As SaveOptions, cancellationToken As CancellationToken) As Task

パラメーター

textWriter
TextWriter

XML を出力するテキスト ライター。The text writer to output the XML to.

options
SaveOptions

読み込みオプションのセット。A set of load options.

cancellationToken
CancellationToken

キャンセル トークン。A cancellation token.

戻り値

Task

非同期保存操作を表すタスク。A task representing the asynchronous save operation.

注釈

を設定した場合 SaveOptions.DisableFormatting 、出力はインデントされません。If SaveOptions.DisableFormatting is set, the output is not indented. SaveOptions.OmitDuplicateNamespacesが設定されている場合は、重複する名前空間宣言が削除されます。If SaveOptions.OmitDuplicateNamespaces is set, duplicate namespace declarations will be removed.

適用対象