XDocument.SaveAsync 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
SaveAsync(XmlWriter, CancellationToken) | |
SaveAsync(Stream, SaveOptions, CancellationToken) | |
SaveAsync(TextWriter, SaveOptions, CancellationToken) |
이 XDocument를 TextWriter에 씁니다. |
SaveAsync(XmlWriter, CancellationToken)
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을 출력할 기록기입니다.
- cancellationToken
- CancellationToken
취소 토큰입니다.
반환
비동기 저장 작업을 나타내는 작업입니다.
적용 대상
SaveAsync(Stream, SaveOptions, CancellationToken)
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을 쓸 스트림입니다.
- options
- SaveOptions
로드 옵션 집합입니다.
- cancellationToken
- CancellationToken
취소 토큰입니다.
반환
비동기 저장 작업을 나타내는 작업입니다.
설명
설정된 경우 SaveOptions.DisableFormatting 출력이 들여쓰기되지 않습니다. 설정된 경우 SaveOptions.OmitDuplicateNamespaces 중복 네임스페이스 선언이 제거됩니다.
적용 대상
SaveAsync(TextWriter, SaveOptions, CancellationToken)
이 XDocument를 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을 출력할 텍스트 기록기입니다.
- options
- SaveOptions
로드 옵션 집합입니다.
- cancellationToken
- CancellationToken
취소 토큰입니다.
반환
비동기 저장 작업을 나타내는 작업입니다.
설명
설정된 경우 SaveOptions.DisableFormatting 출력이 들여쓰기되지 않습니다. 설정된 경우 SaveOptions.OmitDuplicateNamespaces 중복 네임스페이스 선언이 제거됩니다.