XmlWriter.WriteStartDocumentAsync 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
XML 선언을 비동기적으로 씁니다.
오버로드
| Name | Description |
|---|---|
| WriteStartDocumentAsync() |
버전 "1.0"을 사용하여 XML 선언을 비동기적으로 작성합니다. |
| WriteStartDocumentAsync(Boolean) |
버전 "1.0"과 독립 실행형 특성을 사용하여 XML 선언을 비동기적으로 작성합니다. |
설명
동일한 기능을 가진 비동기 버전 WriteStartDocument입니다. 이 메서드를 사용하려면 플래그true를 .로 Async 설정해야 합니다.
WriteStartDocumentAsync()
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
버전 "1.0"을 사용하여 XML 선언을 비동기적으로 작성합니다.
public:
virtual System::Threading::Tasks::Task ^ WriteStartDocumentAsync();
public virtual System.Threading.Tasks.Task WriteStartDocumentAsync();
abstract member WriteStartDocumentAsync : unit -> System.Threading.Tasks.Task
override this.WriteStartDocumentAsync : unit -> System.Threading.Tasks.Task
Public Overridable Function WriteStartDocumentAsync () As Task
반환
비동 WriteStartDocument 기 작업을 나타내는 작업입니다.
예외
XmlWriter 이전 비동기 작업이 완료되기 전에 메서드가 호출되었습니다. 이 경우 InvalidOperationException "비동기 작업이 이미 진행 중입니다."라는 메시지와 함께 throw됩니다.
-또는-
플래그true를 XmlWriter .로 설정하지 않고 비동기 메서드를 호출했습니다Async. 이 경우 InvalidOperationException "Async 메서드를 사용하려는 경우 XmlWriterSettings.Async를 true로 설정"이라는 메시지와 함께 throw됩니다.
설명
동일한 기능을 가진 비동기 버전 WriteStartDocument입니다. 이 메서드를 사용하려면 플래그true를 .로 Async 설정해야 합니다.
이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 WriteStartDocument()throw된 예외를 참조하세요.
추가 정보
적용 대상
WriteStartDocumentAsync(Boolean)
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
- Source:
- XmlWriterAsync.cs
버전 "1.0"과 독립 실행형 특성을 사용하여 XML 선언을 비동기적으로 작성합니다.
public:
virtual System::Threading::Tasks::Task ^ WriteStartDocumentAsync(bool standalone);
public virtual System.Threading.Tasks.Task WriteStartDocumentAsync(bool standalone);
abstract member WriteStartDocumentAsync : bool -> System.Threading.Tasks.Task
override this.WriteStartDocumentAsync : bool -> System.Threading.Tasks.Task
Public Overridable Function WriteStartDocumentAsync (standalone As Boolean) As Task
매개 변수
- standalone
- Boolean
이 경우 true"standalone=yes"를 씁니다. 이 경우 false"standalone=no"를 씁니다.
반환
비동 WriteStartDocument 기 작업을 나타내는 작업입니다.
예외
XmlWriter 이전 비동기 작업이 완료되기 전에 메서드가 호출되었습니다. 이 경우 InvalidOperationException "비동기 작업이 이미 진행 중입니다."라는 메시지와 함께 throw됩니다.
-또는-
플래그true를 XmlWriter .로 설정하지 않고 비동기 메서드를 호출했습니다Async. 이 경우 InvalidOperationException "Async 메서드를 사용하려는 경우 XmlWriterSettings.Async를 true로 설정"이라는 메시지와 함께 throw됩니다.
설명
동일한 기능을 가진 비동기 버전 WriteStartDocument입니다. 이 메서드를 사용하려면 플래그true를 .로 Async 설정해야 합니다.
이 메서드는 메서드의 동기 대응이 throw할 수 있는 모든 비사용 예외를 반환하는 작업에 저장됩니다. 예외가 반환된 작업에 저장되면 태스크가 대기될 때 해당 예외가 throw됩니다. ArgumentException같은 사용 예외는 여전히 동기적으로 던져집니다. 저장된 예외는 .에 의해 WriteStartDocument(Boolean)throw된 예외를 참조하세요.