XmlWriter.WriteStartDocumentAsync 메서드

정의

XML 선언을 비동기적으로 작성합니다.

오버로드

WriteStartDocumentAsync()

버전 "1.0"을 사용하여 XML 선언을 비동기적으로 작성합니다.

WriteStartDocumentAsync(Boolean)

버전 "1.0"과 독립형 특성을 사용하여 XML 선언을 비동기적으로 작성합니다.

설명

동일한 기능을 갖춘 비동기 버전 WriteStartDocument입니다. 이 메서드를 사용하려면 플래그true를 .로 Async 설정해야 합니다.

WriteStartDocumentAsync()

버전 "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

반환

Task

비동기 WriteStartDocument 작업(operation)을 나타내는 작업(task)입니다.

예외

이전 비동기 작업이 완료되기 전에 XmlWriter 메서드가 호출되었습니다. 이 경우 “비동기 작업이 이미 진행 중입니다.” 메시지를 나타내며 InvalidOperationException이 throw됩니다.

또는

Async 플래그를 true로 설정하지 않고 XmlWriter 비동기 메서드가 호출되었습니다. 이 경우 InvalidOperationException은 “비동기 메서드를 사용하려면 XmlWriterSettings.Async를 true로 설정하십시오.”라는 메시지와 함께 throw됩니다.

설명

동일한 기능을 갖춘 비동기 버전 WriteStartDocument입니다. 이 메서드를 사용하려면 플래그true를 .로 Async 설정해야 합니다.

추가 정보

적용 대상

WriteStartDocumentAsync(Boolean)

버전 "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"로 작성합니다.

반환

Task

비동기 WriteStartDocument 작업(operation)을 나타내는 작업(task)입니다.

예외

이전 비동기 작업이 완료되기 전에 XmlWriter 메서드가 호출되었습니다. 이 경우 “비동기 작업이 이미 진행 중입니다.” 메시지를 나타내며 InvalidOperationException이 throw됩니다.

또는

Async 플래그를 true로 설정하지 않고 XmlWriter 비동기 메서드가 호출되었습니다. 이 경우 InvalidOperationException은 “비동기 메서드를 사용하려면 XmlWriterSettings.Async를 true로 설정하십시오.”라는 메시지와 함께 throw됩니다.

설명

동일한 기능을 갖춘 비동기 버전 WriteStartDocument입니다. 이 메서드를 사용하려면 플래그true를 .로 Async 설정해야 합니다.

추가 정보

적용 대상